From 51d98121996370ed9386e85f7cdbde769bf05f35 Mon Sep 17 00:00:00 2001 From: gwm17 Date: Fri, 22 Jul 2022 16:10:22 -0400 Subject: [PATCH] Fix type in serialization for use on Linux. --- Specter/src/Specter/Core/SpectrumSerializer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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());