diff --git a/src/shared/cplusplus/Symbol.cpp b/src/shared/cplusplus/Symbol.cpp index 82d3e5c0165e047ef1ccc0f70a350c8b69d28195..cecb4684280e1b95b4ff5978b0713ff87aaa2fc7 100644 --- a/src/shared/cplusplus/Symbol.cpp +++ b/src/shared/cplusplus/Symbol.cpp @@ -330,10 +330,10 @@ Scope *Symbol::enclosingClassScope() const if (! _scope) return 0; - else if (_scope->isNamespaceScope()) + else if (_scope->isClassScope()) return _scope; - return _scope->enclosingNamespaceScope(); + return _scope->enclosingClassScope(); } Scope *Symbol::enclosingEnumScope() const