Skip to content

Commit caab9a2

Browse files
committed
fixed misc-const-correctness clang-tidy warning
1 parent a2e3610 commit caab9a2

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
@@ -1613,7 +1613,7 @@ namespace simplecpp {
16131613
private:
16141614
/** Create new token where Token::macro is set for replaced tokens */
16151615
Token *newMacroToken(const TokenString &str, const Location &loc, bool replaced, const Token *expandedFromToken=nullptr) const {
1616-
Token *tok = new Token(str,loc);
1616+
Token * const tok = new Token(str,loc);
16171617
if (replaced)
16181618
tok->macro = nameTokDef->str();
16191619
if (expandedFromToken)

0 commit comments

Comments
 (0)