diff --git a/lib/valueflow.cpp b/lib/valueflow.cpp index e9f347b2b6d..80b451a7055 100644 --- a/lib/valueflow.cpp +++ b/lib/valueflow.cpp @@ -6669,7 +6669,7 @@ static bool productParams(const Settings& settings, const std::unordered_map 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())) {