summaryrefslogtreecommitdiffstats
path: root/src/corelib/plugin
diff options
context:
space:
mode:
authorSergio Ahumada <sergio.ahumada@nokia.com>2012-09-08 19:08:53 +0200
committerQt by Nokia <qt-info@nokia.com>2012-09-14 15:23:15 +0200
commit0a37bcf24547101595299572533e5e3a98e04e1d (patch)
tree015338f188df67ebdfe4a5ab7c2fd8fc84251be7 /src/corelib/plugin
parent26b6cce44bc4fb81b09420bdaf56fc6036d1eece (diff)
Mark (non-public API's) ctor's as explicit
Make C++ class constructors that can be used with only one required argument 'explicit' to minimize wrong use of the class. Change-Id: I12ad5b6eb1794108c6b7464a2573e84068733b03 Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/plugin')
-rw-r--r--src/corelib/plugin/qfactoryloader_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/plugin/qfactoryloader_p.h b/src/corelib/plugin/qfactoryloader_p.h
index 907df386d5..02ed8cfc71 100644
--- a/src/corelib/plugin/qfactoryloader_p.h
+++ b/src/corelib/plugin/qfactoryloader_p.h
@@ -70,7 +70,7 @@ class Q_CORE_EXPORT QFactoryLoader : public QObject
Q_DECLARE_PRIVATE(QFactoryLoader)
public:
- QFactoryLoader(const char *iid,
+ explicit QFactoryLoader(const char *iid,
const QString &suffix = QString(),
Qt::CaseSensitivity = Qt::CaseSensitive);
~QFactoryLoader();