use const_cast instead of c cast

This commit is contained in:
XhmikosR 2012-09-29 13:59:07 +03:00 committed by PKEuS
parent 5893b0dad3
commit 5101243c64
1 changed files with 1 additions and 1 deletions

View File

@ -7206,7 +7206,7 @@ private:
Tokenizer tokenizer(&settings, NULL);
std::istringstream istr("x ; return a not_eq x;");
tokenizer.tokenize(istr, "test.c");
Token *x_token = (Token *)(tokenizer.tokens()->tokAt(5));
Token *x_token = const_cast<Token *>(tokenizer.tokens()->tokAt(5));
ASSERT_EQUALS(false, tokenizer.duplicateDefinition(&x_token, tokenizer.tokens()));
}