Skip to content

Commit

Permalink
valueflow.cpp: fixed constParameterReference selfcheck warning
Browse files Browse the repository at this point in the history
  • Loading branch information
firewave committed Jul 1, 2024
1 parent e540f3e commit 16648c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/valueflow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6669,7 +6669,7 @@ static bool productParams(const Settings& settings, const std::unordered_map<Key
return !bail;
}

static void valueFlowInjectParameter(TokenList& tokenlist,
static void valueFlowInjectParameter(const TokenList& tokenlist,
ErrorLogger& errorLogger,
const Settings& settings,
const Scope* functionScope,
Expand Down Expand Up @@ -6848,7 +6848,7 @@ static IteratorRange<Iterator> MakeIteratorRange(Iterator start, Iterator last)
return {start, last};
}

static void valueFlowSubFunction(TokenList& tokenlist, SymbolDatabase& symboldatabase, ErrorLogger& errorLogger, const Settings& settings)
static void valueFlowSubFunction(const TokenList& tokenlist, SymbolDatabase& symboldatabase, ErrorLogger& errorLogger, const Settings& settings)
{
int id = 0;
for (const Scope* scope : MakeIteratorRange(symboldatabase.functionScopes.crbegin(), symboldatabase.functionScopes.crend())) {
Expand Down

0 comments on commit 16648c2

Please sign in to comment.