diff --git a/lib/symboldatabase.cpp b/lib/symboldatabase.cpp index 817bb2f13..931d9f8e8 100644 --- a/lib/symboldatabase.cpp +++ b/lib/symboldatabase.cpp @@ -2369,7 +2369,7 @@ bool SymbolDatabase::isCPP() const const Scope * SymbolDatabase::findScope(const Token *tok, const Scope *startScope) const { - return findScope(tok, startScope); + return const_cast(this)->findScope(tok, const_cast(startScope)); } Scope * SymbolDatabase::findScope(const Token *tok, Scope *startScope)