aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlengine.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@theqtcompany.com>2015-07-13 16:13:00 +0200
committerUlf Hermann <ulf.hermann@theqtcompany.com>2015-07-29 14:35:54 +0000
commitdb90054b186317da4e363c64207c0156d9d73da5 (patch)
tree3c9c7fd5d58ace0bb5e03e7fb67dae8661e08902 /src/qml/qml/qqmlengine.cpp
parent3f3de3b9b762ecc2799a3575b97a2b172fcbc79a (diff)
Remove static proxy methods from QQmlDebugService
They all internally map to one-liners and just add to binary size and complexity. Especially, the most used one, isDebuggingEnabled(), simply checks if there is a QQmlDebugServer::instance(). Change-Id: Ib269928e08506894d933f6696e34ff0d3acb048b Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/qml/qqmlengine.cpp')
-rw-r--r--src/qml/qml/qqmlengine.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/qml/qml/qqmlengine.cpp b/src/qml/qml/qqmlengine.cpp
index fdce590873..ea9e257824 100644
--- a/src/qml/qml/qqmlengine.cpp
+++ b/src/qml/qml/qqmlengine.cpp
@@ -861,8 +861,7 @@ void QQmlEnginePrivate::init()
rootContext = new QQmlContext(q,true);
- if (QCoreApplication::instance()->thread() == q->thread() &&
- QQmlEngineDebugService::isDebuggingEnabled()) {
+ if (QCoreApplication::instance()->thread() == q->thread() && QQmlDebugServer::instance()) {
isDebugging = true;
QQmlEngineDebugService::instance();
QV4DebugService::instance();