From 4e6d5951ed853b236b03ad46ac14649449830d96 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Fri, 6 Oct 2017 17:30:36 +0200 Subject: Make qml-debug a proper feature Change-Id: Iea33ff0200f0bbf43953fedba030edf91d0f1417 Reviewed-by: Lars Knoll --- src/qml/jsruntime/qv4engine_p.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/qml/jsruntime/qv4engine_p.h') diff --git a/src/qml/jsruntime/qv4engine_p.h b/src/qml/jsruntime/qv4engine_p.h index 4549cda5b9..e4ac51efed 100644 --- a/src/qml/jsruntime/qv4engine_p.h +++ b/src/qml/jsruntime/qv4engine_p.h @@ -345,7 +345,7 @@ public: ExecutionEngine(EvalISelFactory *iselFactory = 0); ~ExecutionEngine(); -#ifdef QT_NO_QML_DEBUGGER +#if !QT_CONFIG(qml_debug) QV4::Debugging::Debugger *debugger() const { return nullptr; } QV4::Profiling::Profiler *profiler() const { return nullptr; } @@ -357,7 +357,7 @@ public: void setDebugger(Debugging::Debugger *debugger); void setProfiler(Profiling::Profiler *profiler); -#endif // QT_NO_QML_DEBUGGER +#endif // QT_CONFIG(qml_debug) ExecutionContext *pushGlobalContext(); void pushContext(Heap::ExecutionContext *context); @@ -460,7 +460,7 @@ public: private: void failStackLimitCheck(Scope &scope); -#ifndef QT_NO_QML_DEBUGGER +#if QT_CONFIG(qml_debug) QScopedPointer m_debugger; QScopedPointer m_profiler; #endif -- cgit v1.2.3