summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/sourceutils.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2018-02-01 10:59:24 +0100
committerhjk <hjk@qt.io>2018-02-01 10:28:54 +0000
commit1b87d19a64d45072e72980505a936df38dda4d72 (patch)
tree8b149ec832de2d8ad67f270ca6adccdce37b5418 /src/plugins/debugger/sourceutils.cpp
parent7c417204792fd3c023cf389693d3b3fba8712167 (diff)
downloadqt-creator-1b87d19a64d45072e72980505a936df38dda4d72.tar.gz
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/sourceutils.cpp')
-rw-r--r--src/plugins/debugger/sourceutils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/debugger/sourceutils.cpp b/src/plugins/debugger/sourceutils.cpp
index 993041858f..1184749c4e 100644
--- a/src/plugins/debugger/sourceutils.cpp
+++ b/src/plugins/debugger/sourceutils.cpp
@@ -205,8 +205,8 @@ int getUninitializedVariablesI(const Snapshot &snapshot,
return 4;
// First figure out the function to do a safety name check
// and the innermost scope at cursor position
- const Function *function = 0;
- const Scope *innerMostScope = 0;
+ const Function *function = nullptr;
+ const Scope *innerMostScope = nullptr;
if (symbolAtLine->isFunction()) {
function = symbolAtLine->asFunction();
if (function->memberCount() == 1) // Skip over function block