Fixed gcc compiler warning about uninitialized variable tok1. Ticket: #1965

This commit is contained in:
Robert Reif 2010-08-25 07:38:53 +02:00 committed by Daniel Marjamäki
parent 501015c760
commit ff4ebbede3
1 changed files with 1 additions and 1 deletions

View File

@ -6502,7 +6502,7 @@ void Tokenizer::simplifyEnum()
enumType = tok->tokAt(1);
tok1 = tok->tokAt(3);
}
else if (tok->tokAt(2)->str() == ":")
else
{
enumType = tok->tokAt(1);
tok1 = typeTokenEnd->tokAt(2);