Refactorization: Speedup function lookup in symboldatabase (#6277)

This commit is contained in:
Robert Reif 2015-01-02 16:11:21 +01:00 committed by PKEuS
parent d53f2f583c
commit 9a679d1720
1 changed files with 1 additions and 1 deletions

View File

@ -1121,7 +1121,7 @@ SymbolDatabase::SymbolDatabase(const Tokenizer *tokenizer, const Settings *setti
// Set function call pointers
for (const Token* tok = _tokenizer->list.front(); tok != _tokenizer->list.back(); tok = tok->next()) {
if (Token::Match(tok, "%var% (")) {
if (!tok->function())
if (!tok->function() && tok->varId() == 0)
const_cast<Token *>(tok)->function(findFunction(tok));
}
}