Tokenizer::setVarId : Minor bug fix

This commit is contained in:
Daniel Marjamäki 2008-12-28 10:13:41 +00:00
parent 7a9a43390e
commit 8ba739a99a
1 changed files with 1 additions and 1 deletions

View File

@ -672,7 +672,7 @@ void Tokenizer::setVarId()
const std::string pattern(std::string(". ") + tok->strAt(2));
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 );
}
}