Fixed Cppcheck warning. Method TokenList::createAst can be const

This commit is contained in:
Daniel Marjamäki 2013-06-01 15:04:37 +02:00
parent ca632bd771
commit e3dd51dd2b
2 changed files with 2 additions and 2 deletions

View File

@ -353,7 +353,7 @@ bool TokenList::createTokens(std::istream &code, const std::string& file0)
//---------------------------------------------------------------------------
void TokenList::createAst()
void TokenList::createAst() const
{
// operators that must be ordered according to C-precedence
const char * const operators[] = {

View File

@ -105,7 +105,7 @@ public:
*/
std::string fileLine(const Token *tok) const;
void createAst();
void createAst() const;
private:
/** Disable copy constructor, no implementation */