From 8c8a5341179bcd6cbb2dfdfe2ebcdd1cec33b03e Mon Sep 17 00:00:00 2001 From: Frank Zingsheim Date: Sun, 21 Aug 2016 16:11:23 +0200 Subject: [PATCH] SymbolDatabase: stronger type matching --- lib/symboldatabase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/symboldatabase.cpp b/lib/symboldatabase.cpp index 505a25389..e44781a5c 100644 --- a/lib/symboldatabase.cpp +++ b/lib/symboldatabase.cpp @@ -4037,7 +4037,7 @@ const Type* SymbolDatabase::findType(const Token *startTok, const Scope *startSc startTok = startTok->next(); // type same as scope - if (startTok->str() == startScope->className && startScope->isClassOrStruct()) + if (startTok->str() == startScope->className && startScope->isClassOrStruct() && startTok->strAt(1) != "::") return startScope->definedType; // absolute path - directly start in global scope