Tokenizer::setVarId : Minor bug fix
This commit is contained in:
parent
7a9a43390e
commit
8ba739a99a
|
@ -672,7 +672,7 @@ void Tokenizer::setVarId()
|
||||||
const std::string pattern(std::string(". ") + tok->strAt(2));
|
const std::string pattern(std::string(". ") + tok->strAt(2));
|
||||||
for ( TOKEN *tok2 = tok; tok2; tok2 = tok2->next() )
|
for ( TOKEN *tok2 = tok; tok2; tok2 = tok2->next() )
|
||||||
{
|
{
|
||||||
if ( tok2->varId() == tok->varId() && TOKEN::simpleMatch( tok->next(), pattern.c_str() ) )
|
if ( tok2->varId() == tok->varId() && TOKEN::simpleMatch( tok2->next(), pattern.c_str() ) )
|
||||||
tok2->next()->next()->varId( _varId );
|
tok2->next()->next()->varId( _varId );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue