Fix CID 1368511
This commit is contained in:
parent
c0f92b2409
commit
41a79152a9
|
@ -1127,10 +1127,13 @@ void SymbolDatabase::createSymbolDatabaseSetScopePointers()
|
||||||
start = const_cast<Token*>(_tokenizer->list.front());
|
start = const_cast<Token*>(_tokenizer->list.front());
|
||||||
end = const_cast<Token*>(_tokenizer->list.back());
|
end = const_cast<Token*>(_tokenizer->list.back());
|
||||||
}
|
}
|
||||||
if (start && end) {
|
assert((start == nullptr) == (end == nullptr));
|
||||||
start->scope(&*it);
|
if (start == nullptr)
|
||||||
end->scope(&*it);
|
continue;
|
||||||
}
|
|
||||||
|
start->scope(&*it);
|
||||||
|
end->scope(&*it);
|
||||||
|
|
||||||
if (start != end && start->next() != end) {
|
if (start != end && start->next() != end) {
|
||||||
for (Token* tok = start->next(); tok != end; tok = tok->next()) {
|
for (Token* tok = start->next(); tok != end; tok = tok->next()) {
|
||||||
if (tok->str() == "{") {
|
if (tok->str() == "{") {
|
||||||
|
|
Loading…
Reference in New Issue