From 4295439e53e1f6e9bfea743a8b203814c6b09ae0 Mon Sep 17 00:00:00 2001 From: Edoardo Prezioso Date: Mon, 31 Oct 2011 15:05:52 +0100 Subject: [PATCH] Fixed ticket #3269 (Regression, I think it's somehow related to symbol database) --- lib/checkother.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkother.cpp b/lib/checkother.cpp index 92db0aad1..802c2b308 100644 --- a/lib/checkother.cpp +++ b/lib/checkother.cpp @@ -1977,7 +1977,7 @@ void CheckOther::checkMisusedScopedObject() if (tok->str() == "{") { ++depth; } else if (tok->str() == "}") { - if (depth == 0) + if (depth <= 1) break; --depth; }