SymbolDatabase: Made function static after self-check suggestion

This commit is contained in:
Daniel Marjamäki 2012-09-01 10:46:09 +02:00
parent 769cd4503d
commit d7e521845b
2 changed files with 2 additions and 2 deletions

View File

@ -804,7 +804,7 @@ SymbolDatabase::SymbolDatabase(const Tokenizer *tokenizer, const Settings *setti
}
}
bool SymbolDatabase::isFunction(const Token *tok, const Scope* outerScope, const Token **funcStart, const Token **argStart) const
bool SymbolDatabase::isFunction(const Token *tok, const Scope* outerScope, const Token **funcStart, const Token **argStart)
{
// function returning function pointer? '... ( ... %var% ( ... ))( ... ) {'
if (tok->str() == "(" &&

View File

@ -598,7 +598,7 @@ private:
Function* addGlobalFunctionDecl(Scope*& scope, const Token *argStart, const Token* funcStart);
Function* addGlobalFunction(Scope*& scope, const Token*& tok, const Token *argStart, const Token* funcStart);
void addNewFunction(Scope **info, const Token **tok);
bool isFunction(const Token *tok, const Scope* outerScope, const Token **funcStart, const Token **argStart) const;
static bool isFunction(const Token *tok, const Scope* outerScope, const Token **funcStart, const Token **argStart);
/** class/struct types */
std::set<std::string> classAndStructTypes;