From bcb4410dae718f37269f456100531f64acad452a Mon Sep 17 00:00:00 2001 From: PKEuS Date: Fri, 30 Nov 2012 02:25:40 -0800 Subject: [PATCH] Fixed invalid function in symboldatabase causing endless recursion (VS10 warning) by const_cast --- lib/symboldatabase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)