diff --git a/src/query/v2/plan/scoped_profile.hpp b/src/query/v2/plan/scoped_profile.hpp index a9d4c1296..73484c4bc 100644 --- a/src/query/v2/plan/scoped_profile.hpp +++ b/src/query/v2/plan/scoped_profile.hpp @@ -48,7 +48,7 @@ class ScopedCustomProfile { } private: - static void IncreaseCustomData(nlohmann::json &custom_data, const std::string_view key, uint64_t increment) { + static void IncreaseCustomData(nlohmann::json &custom_data, const std::string_view key, const uint64_t increment) { auto &json_data = custom_data[key]; const auto numerical_data = json_data.is_null() ? 0 : json_data.get(); json_data = numerical_data + increment;