Make function parameter constant
This commit is contained in:
parent
57e7169203
commit
589dd36bf2
@ -48,7 +48,7 @@ class ScopedCustomProfile {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
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];
|
auto &json_data = custom_data[key];
|
||||||
const auto numerical_data = json_data.is_null() ? 0 : json_data.get<uint64_t>();
|
const auto numerical_data = json_data.is_null() ? 0 : json_data.get<uint64_t>();
|
||||||
json_data = numerical_data + increment;
|
json_data = numerical_data + increment;
|
||||||
|
Loading…
Reference in New Issue
Block a user