From 3c7231a9800e4e2de3f90b175f9bb39a9f046b18 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Fri, 6 Dec 2013 20:25:12 +0100 Subject: [PATCH] QMetaStringTable: make ctor explicit Recent commit 105d10de introduced the QMetaStringTable(QByteArray) constructor, but failed to mark it as explicit. The argument, the class' name, is not an equivalent representation of a string table, so mark the constructor explicit. Change-Id: I2f141969400b98d3253283bd6fb0b9d18f2d53b3 Reviewed-by: Simon Hausmann Reviewed-by: Olivier Goffart --- src/corelib/kernel/qmetaobjectbuilder_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/kernel/qmetaobjectbuilder_p.h b/src/corelib/kernel/qmetaobjectbuilder_p.h index 110aaf9ce2..3a1b43c3ed 100644 --- a/src/corelib/kernel/qmetaobjectbuilder_p.h +++ b/src/corelib/kernel/qmetaobjectbuilder_p.h @@ -323,7 +323,7 @@ private: class Q_CORE_EXPORT QMetaStringTable { public: - QMetaStringTable(const QByteArray &className); + explicit QMetaStringTable(const QByteArray &className); int enter(const QByteArray &value);