Contructors with an argument other than its own type should be specified as explicit

This commit is contained in:
Rasmus Karlsson
2017-01-05 16:49:08 +01:00
parent 46b3c4805a
commit f41a541249
+2 -2
View File
@@ -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();