Skip to content

Commit 51e223c

Browse files
committed
Fix
1 parent f319551 commit 51e223c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/symboldatabase.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ void SymbolDatabase::createSymbolDatabaseFindAllScopes()
714714
}
715715
// function prototype?
716716
else if (declEnd && declEnd->str() == ";") {
717-
if ((Token::simpleMatch(tok->tokAt(-1), "::") || (tok->tokAt(-2) && Token::simpleMatch(tok->tokAt(-2), ":: ~"))) &&
717+
if ((Token::simpleMatch(tok->tokAt(-1), "::") || (tok->tokAt(-1) && Token::simpleMatch(tok->tokAt(-2), ":: ~"))) &&
718718
Token::Match(declEnd->previous(), "default|delete")) {
719719
addClassFunction(scope, tok, argStart);
720720
continue;

0 commit comments

Comments
 (0)