diff options
author | Tobias Hunger <tobias.hunger@qt.io> | 2016-12-05 14:36:24 +0100 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@qt.io> | 2016-12-05 13:46:25 +0000 |
commit | a290850afc0cfebd30b2a27106c286bf9f7edbdb (patch) | |
tree | f0e640acc0f57fde24ce03eeafafab2ff13c7d96 /src/plugins/debugger/qml/qmlengineutils.cpp | |
parent | 9dab028fa877631d33c27cc4e38c86aa684a8055 (diff) | |
download | qt-creator-a290850afc0cfebd30b2a27106c286bf9f7edbdb.tar.gz |
Debugger: Remove useless nullptr check
Change-Id: I4b05573276a1372a1f238fbe1cdd9ee67add7158
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/debugger/qml/qmlengineutils.cpp')
-rw-r--r-- | src/plugins/debugger/qml/qmlengineutils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/debugger/qml/qmlengineutils.cpp b/src/plugins/debugger/qml/qmlengineutils.cpp index 0aa1fbd4a5..563a472450 100644 --- a/src/plugins/debugger/qml/qmlengineutils.cpp +++ b/src/plugins/debugger/qml/qmlengineutils.cpp @@ -88,7 +88,7 @@ public: } else if (ast->statement->kind == Node::Kind_Block) { Block *block = static_cast<Block *>(ast->statement); - if (!block || !block->statements) + if (!block->statements) return true; statementStartLine = block->statements->firstSourceLocation().startLine; statementColumn = block->statements->firstSourceLocation().startColumn; |