Skip to content

Commit

Permalink
Fix Pointer to Const
Browse files Browse the repository at this point in the history
  • Loading branch information
wienans committed Feb 12, 2024
1 parent 48c1abf commit 7e9cf79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/testsimplifytypedef.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4167,9 +4167,9 @@ class TestSimplifyTypedef : public TestFixture {
ASSERT_EQUALS_MSG(false, true, "Validation of Tokenizer failed");
}

Token* token;
const Token* token;
// Get the Token which is at the end of all the Typedef's in this case i placed a variable
Token* endOfTypeDef = Token::findsimplematch(tokenizer.list.front(), "endOfTypeDef", tokenizer.list.back());
const Token* endOfTypeDef = Token::findsimplematch(tokenizer.list.front(), "endOfTypeDef", tokenizer.list.back());
// Search for the simplified char token and check its original Name
token = Token::findsimplematch(endOfTypeDef, "char", tokenizer.list.back());
ASSERT_EQUALS("uint8_t", token->originalName());
Expand Down

0 comments on commit 7e9cf79

Please sign in to comment.