Navigation Menu

Skip to content

Commit

Permalink
QQmlTypeLoader: Guard enableProfiler() against QT_NO_QML_DEBUGGER
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ulf Hermann authored and jaheikk committed Sep 12, 2017
1 parent cf3b1bb commit bb01612
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/qml/qml/qqmltypeloader.cpp
Expand Up @@ -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()
{
Expand Down

0 comments on commit bb01612

Please sign in to comment.