Skip to content

Commit f2458aa

Browse files
committed
findtype
1 parent 399c25c commit f2458aa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/symboldatabase.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6305,7 +6305,8 @@ static T* findTypeImpl(S& thisScope, const std::string & name)
63056305
return it->second;
63066306

63076307
// is type defined in anonymous namespace..
6308-
it = thisScope.definedTypesMap.find("");
6308+
static const std::string anonymousScope;
6309+
it = thisScope.definedTypesMap.find(anonymousScope);
63096310
if (it != thisScope.definedTypesMap.end()) {
63106311
for (S *scope : thisScope.nestedList) {
63116312
if (scope->className.empty() && (scope->type == ScopeType::eNamespace || scope->isClassOrStructOrUnion())) {

0 commit comments

Comments
 (0)