diff --git a/Specter/src/Specter/Core/SpectrumSerializer.cpp b/Specter/src/Specter/Core/SpectrumSerializer.cpp index b4b0830..230beb5 100644 --- a/Specter/src/Specter/Core/SpectrumSerializer.cpp +++ b/Specter/src/Specter/Core/SpectrumSerializer.cpp @@ -128,7 +128,7 @@ namespace Specter { if (cuts) { CutArgs tempArgs; - for (auto& cut : cuts) + for (const auto& cut : cuts) { tempArgs.name = cut["Cut"].as(); tempArgs.type = ConvertStringToCutType(cut["Type"].as()); @@ -153,7 +153,7 @@ namespace Specter { { HistogramArgs tempArgs; std::vector tempSubHistos; - for (auto& histo : histos) + for (const auto& histo : histos) { tempArgs.name = histo["Histogram"].as(); tempArgs.type = ConvertStringToSpectrumType(histo["Type"].as());