Mark QMetaType constructor as explicit.

Implicit conversion from an int would look strange in this case.

Change-Id: I2222a045c293595d7b83a2fb75ca646f5cf79bca
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
bb10
Jędrzej Nowacki 2012-03-05 15:27:40 +01:00 committed by Qt by Nokia
parent eb150a51cd
commit 95550c8f12
1 changed files with 1 additions and 1 deletions

View File

@ -255,7 +255,7 @@ public:
static bool load(QDataStream &stream, int type, void *data);
#endif
QMetaType(const int type);
explicit QMetaType(const int type);
inline ~QMetaType();
inline bool isValid() const;