fix a bug in symbol database while scope processing

This commit is contained in:
Robert Reif 2011-02-26 23:00:06 -05:00
parent b74ebbda02
commit 2b03bfaf38
1 changed files with 1 additions and 1 deletions

View File

@ -432,7 +432,7 @@ SymbolDatabase::SymbolDatabase(const Tokenizer *tokenizer, const Settings *setti
Token::simpleMatch(tok->next()->link(), ") {")) Token::simpleMatch(tok->next()->link(), ") {"))
{ {
scope = new Scope(this, tok, scope, Scope::eWhile, tok->next()->link()->next()); scope = new Scope(this, tok, scope, Scope::eWhile, tok->next()->link()->next());
tok = tok->next()->link()->next()->link(); tok = tok->next()->link()->next();
scopeList.push_back(scope); scopeList.push_back(scope);
} }
else if (Token::simpleMatch(tok, "do {")) else if (Token::simpleMatch(tok, "do {"))