forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user