Tokenizer::tokenize(): removed useless const_cast.

No functional change.
This commit is contained in:
Slava Semushin 2009-09-29 20:09:15 +07:00
parent 77d677dd59
commit 88dd9846ae
1 changed files with 2 additions and 2 deletions

View File

@ -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<Token*>(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<Token*>(tok->tokAt(4));
tok = tok->tokAt(4);
for (Token *tok2 = tok; tok2; tok2 = tok2->next())
{
if (tok2->str() == type3)