Fix slowlyness, caused by one of the previous commits.
This commit is contained in:
parent
3819c66f36
commit
b29673f4a2
|
@ -748,9 +748,9 @@ void Tokenizer::setVarId()
|
||||||
++indentlevel;
|
++indentlevel;
|
||||||
else if (tok2->str() == "}")
|
else if (tok2->str() == "}")
|
||||||
{
|
{
|
||||||
|
--indentlevel;
|
||||||
if (indentlevel == 0)
|
if (indentlevel == 0)
|
||||||
break;
|
break;
|
||||||
--indentlevel;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// If a variable id is found in the class declaration, start
|
// If a variable id is found in the class declaration, start
|
||||||
|
@ -772,9 +772,9 @@ void Tokenizer::setVarId()
|
||||||
++indentlevel2;
|
++indentlevel2;
|
||||||
else if (tok3->str() == "}")
|
else if (tok3->str() == "}")
|
||||||
{
|
{
|
||||||
|
--indentlevel2;
|
||||||
if (indentlevel2 <= 1)
|
if (indentlevel2 <= 1)
|
||||||
break;
|
break;
|
||||||
--indentlevel2;
|
|
||||||
}
|
}
|
||||||
else if (indentlevel2 == 0 && tok3->str() == ";")
|
else if (indentlevel2 == 0 && tok3->str() == ";")
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue