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 2357402 commit ef3e60a
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 ef3e60a

Please sign in to comment.