From f9b1505115136d0676f4c4e102ae9597b1a44ceb Mon Sep 17 00:00:00 2001 From: Robert Reif Date: Sat, 19 Feb 2011 13:40:02 -0500 Subject: [PATCH] fix Scope::findInNestedListRecursive to check all children --- lib/symboldatabase.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/symboldatabase.cpp b/lib/symboldatabase.cpp index 05a0aa0a5..6ae136386 100644 --- a/lib/symboldatabase.cpp +++ b/lib/symboldatabase.cpp @@ -1422,7 +1422,8 @@ Scope * Scope::findInNestedListRecursive(const std::string & name) for (it = nestedList.begin(); it != nestedList.end(); ++it) { Scope *child = (*it)->findInNestedListRecursive(name); - return child; + if (child) + return child; } return 0; }