Fixed ticket #3269 (Regression, I think it's somehow related to symbol database)
This commit is contained in:
parent
ba5909ef1d
commit
4295439e53
|
@ -1977,7 +1977,7 @@ void CheckOther::checkMisusedScopedObject()
|
|||
if (tok->str() == "{") {
|
||||
++depth;
|
||||
} else if (tok->str() == "}") {
|
||||
if (depth == 0)
|
||||
if (depth <= 1)
|
||||
break;
|
||||
--depth;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue