use const_cast instead of c cast
This commit is contained in:
parent
5893b0dad3
commit
5101243c64
|
@ -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()));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue