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
parent
eb150a51cd
commit
95550c8f12
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue