diff --git a/src/shared/cplusplus/Symbol.cpp b/src/shared/cplusplus/Symbol.cpp index 7b0ff6a0c95..e5a99bcb66f 100644 --- a/src/shared/cplusplus/Symbol.cpp +++ b/src/shared/cplusplus/Symbol.cpp @@ -242,7 +242,7 @@ void Symbol::setScope(Scope *scope) _scope = scope; } -Symbol *Symbol::enclosingSymbol() const +ScopedSymbol *Symbol::enclosingSymbol() const { if (! _scope) return 0; diff --git a/src/shared/cplusplus/Symbol.h b/src/shared/cplusplus/Symbol.h index 3835207ef3b..b83f6766017 100644 --- a/src/shared/cplusplus/Symbol.h +++ b/src/shared/cplusplus/Symbol.h @@ -284,7 +284,7 @@ public: bool isUnavailable() const; void setUnavailable(bool isUnavailable); - Symbol *enclosingSymbol() const; + ScopedSymbol *enclosingSymbol() const; /// Returns the eclosing namespace scope. Scope *enclosingNamespaceScope() const;