diff options
author | hjk <hjk@qt.io> | 2018-02-01 10:59:24 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2018-02-01 10:28:54 +0000 |
commit | 1b87d19a64d45072e72980505a936df38dda4d72 (patch) | |
tree | 8b149ec832de2d8ad67f270ca6adccdce37b5418 /src/plugins/debugger/qml/qmlengine.cpp | |
parent | 7c417204792fd3c023cf389693d3b3fba8712167 (diff) |
Debugger: Modernize
Mostly nullptr instead of 0, but also a few bits of collateral damage.
Change-Id: I921991272aca921dcdecf302dfff3716e79dfc24
Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/debugger/qml/qmlengine.cpp')
-rw-r--r-- | src/plugins/debugger/qml/qmlengine.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/debugger/qml/qmlengine.cpp b/src/plugins/debugger/qml/qmlengine.cpp index 96007d1bcb..968c0ef0a6 100644 --- a/src/plugins/debugger/qml/qmlengine.cpp +++ b/src/plugins/debugger/qml/qmlengine.cpp @@ -223,7 +223,7 @@ public: bool contextEvaluate = false; QTimer connectionTimer; - QmlDebug::QDebugMessageClient *msgClient = 0; + QmlDebug::QDebugMessageClient *msgClient = nullptr; QHash<int, QmlCallback> callbackForToken; QMetaObject::Connection startupMessageFilterConnection; @@ -938,7 +938,7 @@ static ConsoleItem *constructLogItemTree(const QVariant &result, return 0; QString text; - ConsoleItem *item = 0; + ConsoleItem *item = nullptr; if (result.type() == QVariant::Map) { if (key.isEmpty()) text = "Object"; @@ -1110,7 +1110,7 @@ void QmlEngine::executeDebuggerCommand(const QString &command, DebuggerLanguages void QmlEnginePrivate::updateScriptSource(const QString &fileName, int lineOffset, int columnOffset, const QString &source) { - QTextDocument *document = 0; + QTextDocument *document = nullptr; if (sourceDocuments.contains(fileName)) { document = sourceDocuments.value(fileName); } else { |