diff --git a/lib/tokenlist.cpp b/lib/tokenlist.cpp index e8a8d05f7..31261ee03 100644 --- a/lib/tokenlist.cpp +++ b/lib/tokenlist.cpp @@ -963,7 +963,7 @@ static Token * createAstAtToken(Token *tok, bool cpp) return tok; } -void TokenList::createAst() const +void TokenList::createAst() { for (Token *tok = _front; tok; tok = tok ? tok->next() : NULL) { tok = createAstAtToken(tok, isCPP()); diff --git a/lib/tokenlist.h b/lib/tokenlist.h index c2005d613..4d4a6cf77 100644 --- a/lib/tokenlist.h +++ b/lib/tokenlist.h @@ -126,7 +126,7 @@ public: */ unsigned long long calculateChecksum() const; - void createAst() const; + void createAst(); private: /** Disable copy constructor, no implementation */