summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel
diff options
context:
space:
mode:
authorJędrzej Nowacki <jedrzej.nowacki@nokia.com>2012-03-05 15:27:40 +0100
committerQt by Nokia <qt-info@nokia.com>2012-03-06 06:34:40 +0100
commit95550c8f1292c93ea42d59283394fc4f4d63bf2c (patch)
tree91905128d40b92c7a484787d873ef37f0be1aca2 /src/corelib/kernel
parenteb150a51cd1e439fd719fe3cd3f30c53f9a1348a (diff)
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>
Diffstat (limited to 'src/corelib/kernel')
-rw-r--r--src/corelib/kernel/qmetatype.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/kernel/qmetatype.h b/src/corelib/kernel/qmetatype.h
index f969875455..7f6eaf2230 100644
--- a/src/corelib/kernel/qmetatype.h
+++ b/src/corelib/kernel/qmetatype.h
@@ -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;