From f41a541249db0d1986418127c6a0cc0ca25f5ab4 Mon Sep 17 00:00:00 2001 From: Rasmus Karlsson Date: Thu, 5 Jan 2017 16:49:08 +0100 Subject: [PATCH] Contructors with an argument other than its own type should be specified as explicit --- word.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/word.h b/word.h index bfea206f..7bcd1bb8 100644 --- a/word.h +++ b/word.h @@ -40,8 +40,8 @@ public: BadgeBits = 0x400000, }; - Word(LazyLoadedImage* image, Type type, const QString& copytext, const QString& tooltip = ""); - Word(const QString& text, Type type, const QString& copytext, const QString& tooltip = ""); + explicit Word(LazyLoadedImage* image, Type type, const QString& copytext, const QString& tooltip = ""); + explicit Word(const QString& text, Type type, const QString& copytext, const QString& tooltip = ""); ~Word();