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() == "{") {
|
if (tok->str() == "{") {
|
||||||
++depth;
|
++depth;
|
||||||
} else if (tok->str() == "}") {
|
} else if (tok->str() == "}") {
|
||||||
if (depth == 0)
|
if (depth <= 1)
|
||||||
break;
|
break;
|
||||||
--depth;
|
--depth;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue