Debugger: Remove useless nullptr check

Change-Id: I4b05573276a1372a1f238fbe1cdd9ee67add7158
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Tobias Hunger
2016-12-05 14:36:24 +01:00
parent 9dab028fa8
commit a290850afc

View File

@@ -88,7 +88,7 @@ public:
} else if (ast->statement->kind == Node::Kind_Block) { } else if (ast->statement->kind == Node::Kind_Block) {
Block *block = static_cast<Block *>(ast->statement); Block *block = static_cast<Block *>(ast->statement);
if (!block || !block->statements) if (!block->statements)
return true; return true;
statementStartLine = block->statements->firstSourceLocation().startLine; statementStartLine = block->statements->firstSourceLocation().startLine;
statementColumn = block->statements->firstSourceLocation().startColumn; statementColumn = block->statements->firstSourceLocation().startColumn;