Skip to content

Commit 012b941

Browse files
committed
fixed misc-const-correctness clang-tidy warning
1 parent a65b25a commit 012b941

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

simplecpp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1693,7 +1693,7 @@ namespace simplecpp {
16931693
private:
16941694
/** Create new token where Token::macro is set for replaced tokens */
16951695
Token *newMacroToken(const TokenString &str, const Location &loc, bool replaced, const Token *expandedFromToken=nullptr) const {
1696-
Token *tok = new Token(str,loc);
1696+
Token * const tok = new Token(str,loc);
16971697
if (replaced)
16981698
tok->macro = nameTokDef->str();
16991699
if (expandedFromToken)

0 commit comments

Comments
 (0)