Skip to content

Commit

Permalink
const
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Jul 26, 2023
1 parent 8a35c40 commit ba58f14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/checkother.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,7 @@ void CheckOther::checkVariableScope()
}
}

bool CheckOther::checkInnerScope(const Token *tok, const Variable* var, bool& used)
bool CheckOther::checkInnerScope(const Token *tok, const Variable* var, bool& used) const
{
const Scope* scope = tok->next()->scope();
bool loopVariable = scope->isLoopScope();
Expand Down
2 changes: 1 addition & 1 deletion lib/checkother.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class CPPCHECKLIB CheckOther : public Check {

/** @brief %Check scope of variables */
void checkVariableScope();
bool checkInnerScope(const Token *tok, const Variable* var, bool& used);
bool checkInnerScope(const Token *tok, const Variable* var, bool& used) const;

/** @brief %Check for comma separated statements in return */
void checkCommaSeparatedReturn();
Expand Down

0 comments on commit ba58f14

Please sign in to comment.