Tokenizer: Only create 1 symbol database. ticket: #2468

This commit is contained in:
Robert Reif 2011-01-22 08:34:24 +01:00 committed by Daniel Marjamäki
parent a83aced2ec
commit 69eee86ee4
1 changed files with 2 additions and 3 deletions

View File

@ -7950,8 +7950,7 @@ void Tokenizer::simplifyStd()
const Token *Tokenizer::getFunctionTokenByName(const char funcname[]) const const Token *Tokenizer::getFunctionTokenByName(const char funcname[]) const
{ {
if (_symbolDatabase == NULL) getSymbolDatabase();
getSymbolDatabase();
std::list<Scope *>::const_iterator i; std::list<Scope *>::const_iterator i;
@ -7971,7 +7970,7 @@ const Token *Tokenizer::getFunctionTokenByName(const char funcname[]) const
void Tokenizer::fillFunctionList() void Tokenizer::fillFunctionList()
{ {
_symbolDatabase = new SymbolDatabase(this, _settings, _errorLogger); getSymbolDatabase();
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------