Fixed invalid function in symboldatabase causing endless recursion (VS10 warning) by const_cast
This commit is contained in:
parent
672831f41a
commit
bcb4410dae
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue