diff --git a/src/tokenize.cpp b/src/tokenize.cpp index e2b0d650b..fb42d556a 100644 --- a/src/tokenize.cpp +++ b/src/tokenize.cpp @@ -421,7 +421,7 @@ bool Tokenizer::tokenize(std::istream &code, const char FileName[]) { const char *type1 = tok->strAt(1); const char *type2 = tok->strAt(2); - tok = const_cast(tok->tokAt(3)); + tok = tok->tokAt(3); for (Token *tok2 = tok; tok2; tok2 = tok2->next()) { if (tok2->str() == type2) @@ -434,7 +434,7 @@ bool Tokenizer::tokenize(std::istream &code, const char FileName[]) const char *type1 = tok->strAt(1); const char *type2 = tok->strAt(2); const char *type3 = tok->strAt(3); - tok = const_cast(tok->tokAt(4)); + tok = tok->tokAt(4); for (Token *tok2 = tok; tok2; tok2 = tok2->next()) { if (tok2->str() == type3)