aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsapi/qjsengine.cpp
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2023-11-22 14:17:39 +0100
committerFabian Kosmale <fabian.kosmale@qt.io>2023-11-22 22:40:36 +0100
commitb9be154316ddd4633ffeab6cbfdbcac847237ba5 (patch)
treeb1c76b9cb6454378e8181cdfb6e5bed985ba20fd /src/qml/jsapi/qjsengine.cpp
parentfc3cd841b95c220a4644cc3e5e2b6e0f393504d3 (diff)
QJSEngine: use delegating ctor
Change-Id: Iebb3444a523a5b8bcd3066580968f9d0dccfea87 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/jsapi/qjsengine.cpp')
-rw-r--r--src/qml/jsapi/qjsengine.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/qml/jsapi/qjsengine.cpp b/src/qml/jsapi/qjsengine.cpp
index 6aeeacbb02..817fc15943 100644
--- a/src/qml/jsapi/qjsengine.cpp
+++ b/src/qml/jsapi/qjsengine.cpp
@@ -345,11 +345,8 @@ QJSEngine::QJSEngine()
*/
QJSEngine::QJSEngine(QObject *parent)
- : QObject(*new QJSEnginePrivate, parent)
- , m_v4Engine(new QV4::ExecutionEngine(this))
+ : QJSEngine(*new QJSEnginePrivate, parent)
{
- checkForApplicationInstance();
-
QJSEnginePrivate::addToDebugServer(this);
}