From 5a8574cc0566fc7f0ab0338357ef55c2d75b89a1 Mon Sep 17 00:00:00 2001 From: orbitcowboy Date: Tue, 20 Jan 2015 11:22:22 +0100 Subject: [PATCH] tokenlist::createAst(); should not be const. --- lib/tokenlist.cpp | 2 +- lib/tokenlist.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 */