summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2017-09-12 10:40:31 +0200
committerJani Heikkinen <jani.heikkinen@qt.io>2017-09-12 08:45:46 +0000
commitbb01612a8809efd268903e41b9e3a17cff48f1c0 (patch)
treecd90f422c5182210ea0253653efa2328fdea9c16
parentcf3b1bbd9ee048a28b58a55d76504b1c01e34811 (diff)
QQmlTypeLoader: Guard enableProfiler() against QT_NO_QML_DEBUGGERv5.6.3
If debugging is disabled, enableProfiler() is an inline empty function. Task-number: QTBUG-63118 Change-Id: I28fa7b7d3390482e7b0cc6419c5a1f47a5b9916f Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
-rw-r--r--src/qml/qml/qqmltypeloader.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qml/qml/qqmltypeloader.cpp b/src/qml/qml/qqmltypeloader.cpp
index 074f760a36..e9883c00a0 100644
--- a/src/qml/qml/qqmltypeloader.cpp
+++ b/src/qml/qml/qqmltypeloader.cpp
@@ -900,11 +900,13 @@ void QQmlTypeLoader::invalidate()
m_networkReplies.clear();
}
+#ifndef QT_NO_QML_DEBUGGER
void QQmlTypeLoader::enableProfiler()
{
Q_ASSERT(!m_profiler);
m_profiler = new QQmlProfiler;
}
+#endif // QT_NO_QML_DEBUGGER
void QQmlTypeLoader::lock()
{