Skip to content

Commit 35fc752

Browse files
committed
valueflow.cpp: fixed constParameter selfcheck warnings
1 parent 52a6b18 commit 35fc752

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/valueflow.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1999,7 +1999,7 @@ static Analyzer::Result valueFlowForward(Token* startToken,
19991999
const Token* endToken,
20002000
const Token* exprTok,
20012001
ValueFlow::Value value,
2002-
TokenList& tokenlist,
2002+
const TokenList& tokenlist,
20032003
const Settings* settings,
20042004
SourceLocation loc = SourceLocation::current())
20052005
{
@@ -2015,7 +2015,7 @@ static Analyzer::Result valueFlowForward(Token* startToken,
20152015
const Token* endToken,
20162016
const Token* exprTok,
20172017
std::list<ValueFlow::Value> values,
2018-
TokenList& tokenlist,
2018+
const TokenList& tokenlist,
20192019
const Settings* settings,
20202020
SourceLocation loc = SourceLocation::current())
20212021
{
@@ -2044,7 +2044,7 @@ static Analyzer::Result valueFlowForward(Token* startToken,
20442044
static Analyzer::Result valueFlowForwardRecursive(Token* top,
20452045
const Token* exprTok,
20462046
std::list<ValueFlow::Value> values,
2047-
TokenList& tokenlist,
2047+
const TokenList& tokenlist,
20482048
const Settings* settings,
20492049
SourceLocation loc = SourceLocation::current())
20502050
{
@@ -2062,7 +2062,7 @@ static void valueFlowReverse(Token* tok,
20622062
const Token* const endToken,
20632063
const Token* const varToken,
20642064
std::list<ValueFlow::Value> values,
2065-
TokenList& tokenlist,
2065+
const TokenList& tokenlist,
20662066
const Settings* settings,
20672067
SourceLocation loc = SourceLocation::current())
20682068
{
@@ -2074,7 +2074,7 @@ static void valueFlowReverse(Token* tok,
20742074
}
20752075

20762076
// Deprecated
2077-
static void valueFlowReverse(TokenList& tokenlist,
2077+
static void valueFlowReverse(const TokenList& tokenlist,
20782078
Token* tok,
20792079
const Token* const varToken,
20802080
ValueFlow::Value val,
@@ -6922,7 +6922,7 @@ static void valueFlowForLoopSimplify(Token* const bodyStart,
69226922
}
69236923
}
69246924

6925-
static void valueFlowForLoopSimplifyAfter(Token* fortok, nonneg int varid, const MathLib::bigint num, TokenList& tokenlist, const Settings* settings)
6925+
static void valueFlowForLoopSimplifyAfter(Token* fortok, nonneg int varid, const MathLib::bigint num, const TokenList& tokenlist, const Settings* settings)
69266926
{
69276927
const Token *vartok = nullptr;
69286928
for (const Token *tok = fortok; tok; tok = tok->next()) {

0 commit comments

Comments
 (0)