From b3c60bf6b2d330791e498d71f77ec142f641214f Mon Sep 17 00:00:00 2001 From: orbitcowboy Date: Mon, 31 Oct 2016 16:11:11 +0100 Subject: [PATCH] tokenize: Improved const correctness. There are no functional changes. --- lib/tokenize.cpp | 2 +- lib/tokenize.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index 6390723d3..58d2421dc 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -2415,7 +2415,7 @@ static void setVarIdStructMembers(Token **tok1, } -void Tokenizer::setVarIdClassDeclaration(Token * const startToken, +void Tokenizer::setVarIdClassDeclaration(const Token * const startToken, const std::map &variableId, const unsigned int scopeStartVarId, std::map >& structMembers) diff --git a/lib/tokenize.h b/lib/tokenize.h index 7c259d251..70431dedf 100644 --- a/lib/tokenize.h +++ b/lib/tokenize.h @@ -691,7 +691,7 @@ private: void unsupportedTypedef(const Token *tok) const; - void setVarIdClassDeclaration(Token * const startToken, + void setVarIdClassDeclaration(const Token * const startToken, const std::map &variableId, const unsigned int scopeStartVarId, std::map >& structMembers);