summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2016-03-06 12:21:30 +0100
committerMarc Mutz <marc.mutz@kdab.com>2016-03-06 12:22:56 +0000
commitf5e16ab0e1e153ec86f0d8651571e176ac6caa7c (patch)
tree4c8dd8e11c42a636914e531c4d37068ca22ce03f
parent0a29d74a5e875ad2e0229ed2c8e48344f87a45e0 (diff)
downloadqtscript-f5e16ab0e1e153ec86f0d8651571e176ac6caa7c.tar.gz
Make more ctors explicit
Added explicit where it was missing. This is not a source- incompatible change, because code that breaks by this is a bug. Let's not have this sitting around in an LTS. One is even a protected ctor. Change-Id: I114b26332ba0e2752f5d02ebcd6090fc2b562b40 Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
-rw-r--r--src/script/api/qscriptengine.h2
-rw-r--r--src/scripttools/debugging/qscriptenginedebugger.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/script/api/qscriptengine.h b/src/script/api/qscriptengine.h
index c9c0f7d..80a2869 100644
--- a/src/script/api/qscriptengine.h
+++ b/src/script/api/qscriptengine.h
@@ -264,7 +264,7 @@ protected:
QScriptEngine(QScriptEnginePrivate &dd);
#else
- QScriptEngine(QScriptEnginePrivate &dd, QObject *parent = Q_NULLPTR);
+ explicit QScriptEngine(QScriptEnginePrivate &dd, QObject *parent = Q_NULLPTR);
#endif
private:
diff --git a/src/scripttools/debugging/qscriptenginedebugger.h b/src/scripttools/debugging/qscriptenginedebugger.h
index 7fd5c77..a56a833 100644
--- a/src/scripttools/debugging/qscriptenginedebugger.h
+++ b/src/scripttools/debugging/qscriptenginedebugger.h
@@ -89,7 +89,7 @@ public:
SuspendedState
};
- QScriptEngineDebugger(QObject *parent = Q_NULLPTR);
+ explicit QScriptEngineDebugger(QObject *parent = Q_NULLPTR);
~QScriptEngineDebugger();
void attachTo(QScriptEngine *engine);