Clang: Fix accessing nullptr

Change-Id: I204ff9263520dee70a89adf99182d198e4dd1036
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
Christian Stenger
2018-06-11 11:07:58 +02:00
parent a9b0fa026f
commit cab82a94c7

View File

@@ -81,6 +81,7 @@ void buildTree(const TokenContainers &containers,
if (parentType == ClangBackEnd::HighlightingType::VirtualFunction if (parentType == ClangBackEnd::HighlightingType::VirtualFunction
|| parentType == ClangBackEnd::HighlightingType::Function) { || parentType == ClangBackEnd::HighlightingType::Function) {
// Treat everything inside a function scope as local variables. // Treat everything inside a function scope as local variables.
treeItemCache.erase(index);
continue; continue;
} }