diff --git a/PWGDQ/Core/MixingLibrary.cxx b/PWGDQ/Core/MixingLibrary.cxx index b4314c69296..810f09cb62c 100644 --- a/PWGDQ/Core/MixingLibrary.cxx +++ b/PWGDQ/Core/MixingLibrary.cxx @@ -248,7 +248,7 @@ void o2::aod::dqmixing::SetUpMixingFromJSON(MixingHandler* mh, const char* json) const auto& lims = obj["LimsHashing"]; std::vector limits; limits.reserve(lims.Size()); - for (auto& v : lims.GetArray()) { + for (const auto& v : lims.GetArray()) { limits.push_back(v.GetFloat()); }