1
0
Fork 0
mirror of https://github.com/gwm17/Specter.git synced 2024-11-22 18:28:52 -05:00

Fix type in serialization for use on Linux.

This commit is contained in:
Gordon McCann 2022-07-22 16:10:22 -04:00
parent 798fb85687
commit 51d9812199

View File

@ -128,7 +128,7 @@ namespace Specter {
if (cuts) if (cuts)
{ {
CutArgs tempArgs; CutArgs tempArgs;
for (auto& cut : cuts) for (const auto& cut : cuts)
{ {
tempArgs.name = cut["Cut"].as<std::string>(); tempArgs.name = cut["Cut"].as<std::string>();
tempArgs.type = ConvertStringToCutType(cut["Type"].as<std::string>()); tempArgs.type = ConvertStringToCutType(cut["Type"].as<std::string>());
@ -153,7 +153,7 @@ namespace Specter {
{ {
HistogramArgs tempArgs; HistogramArgs tempArgs;
std::vector<std::string> tempSubHistos; std::vector<std::string> tempSubHistos;
for (auto& histo : histos) for (const auto& histo : histos)
{ {
tempArgs.name = histo["Histogram"].as<std::string>(); tempArgs.name = histo["Histogram"].as<std::string>();
tempArgs.type = ConvertStringToSpectrumType(histo["Type"].as<std::string>()); tempArgs.type = ConvertStringToSpectrumType(histo["Type"].as<std::string>());