Fixed ticket #3269 (Regression, I think it's somehow related to symbol database)

This commit is contained in:
Edoardo Prezioso 2011-10-31 15:05:52 +01:00
parent ba5909ef1d
commit 4295439e53
1 changed files with 1 additions and 1 deletions

View File

@ -1977,7 +1977,7 @@ void CheckOther::checkMisusedScopedObject()
if (tok->str() == "{") {
++depth;
} else if (tok->str() == "}") {
if (depth == 0)
if (depth <= 1)
break;
--depth;
}