Skip to content

Commit 5a8574c

Browse files
committed
tokenlist::createAst(); should not be const.
1 parent bf1565b commit 5a8574c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/tokenlist.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,7 @@ static Token * createAstAtToken(Token *tok, bool cpp)
963963
return tok;
964964
}
965965

966-
void TokenList::createAst() const
966+
void TokenList::createAst()
967967
{
968968
for (Token *tok = _front; tok; tok = tok ? tok->next() : NULL) {
969969
tok = createAstAtToken(tok, isCPP());

lib/tokenlist.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ class CPPCHECKLIB TokenList {
126126
*/
127127
unsigned long long calculateChecksum() const;
128128

129-
void createAst() const;
129+
void createAst();
130130

131131
private:
132132
/** Disable copy constructor, no implementation */

0 commit comments

Comments
 (0)