Fixed invalid function in symboldatabase causing endless recursion (VS10 warning) by const_cast

This commit is contained in:
PKEuS 2012-11-30 02:25:40 -08:00
parent 672831f41a
commit bcb4410dae
1 changed files with 1 additions and 1 deletions

View File

@ -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<SymbolDatabase*>(this)->findScope(tok, const_cast<Scope*>(startScope));
}
Scope * SymbolDatabase::findScope(const Token *tok, Scope *startScope)