Skip to content

Commit fe2daeb

Browse files
committed
fixed misc-const-correctness clang-tidy warning
1 parent a30ad8a commit fe2daeb

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
@@ -1708,7 +1708,7 @@ namespace simplecpp {
17081708
private:
17091709
/** Create new token where Token::macro is set for replaced tokens */
17101710
Token *newMacroToken(const TokenString &str, const Location &loc, bool replaced, const Token *expandedFromToken=nullptr) const {
1711-
Token *tok = new Token(str,loc);
1711+
Token * const tok = new Token(str,loc);
17121712
if (replaced)
17131713
tok->macro = nameTokDef->str();
17141714
if (expandedFromToken)

0 commit comments

Comments
 (0)