SymbolDatabase: stronger type matching

This commit is contained in:
Frank Zingsheim 2016-08-21 16:11:23 +02:00 committed by Daniel Marjamäki
parent 7c9a69357e
commit 8c8a534117
1 changed files with 1 additions and 1 deletions

View File

@ -4037,7 +4037,7 @@ const Type* SymbolDatabase::findType(const Token *startTok, const Scope *startSc
startTok = startTok->next(); startTok = startTok->next();
// type same as scope // type same as scope
if (startTok->str() == startScope->className && startScope->isClassOrStruct()) if (startTok->str() == startScope->className && startScope->isClassOrStruct() && startTok->strAt(1) != "::")
return startScope->definedType; return startScope->definedType;
// absolute path - directly start in global scope // absolute path - directly start in global scope