diff --git a/GUI/Model/Model/ParameterTreeUtils.cpp b/GUI/Model/Model/ParameterTreeUtils.cpp index 6b1015a30ebf7bc2ffaddcd09e9ad2d3e03f1628..c7f5465e018ae5e7f923e227f27bb878a2e92fdc 100644 --- a/GUI/Model/Model/ParameterTreeUtils.cpp +++ b/GUI/Model/Model/ParameterTreeUtils.cpp @@ -205,11 +205,11 @@ void ParameterTreeBuilder::addInterference(ParameterLabelItem* layoutLabel, Profile2DItemCatalog::type(pdf1) == Profile2DItemCatalog::type(pdf2); auto* pdf1Label = addLabel<Profile2DItemCatalog>(label, samePdfTypes ? "PDF1" : "PDF", pdf1); - for (const auto& d : pdf1->profileProperties()) + for (auto& d : pdf1->profileProperties()) addParameterItem(pdf1Label, d); auto* pdf2Label = addLabel<Profile2DItemCatalog>(label, samePdfTypes ? "PDF2" : "PDF", pdf2); - for (const auto& d : pdf2->profileProperties()) + for (auto& d : pdf2->profileProperties()) addParameterItem(pdf2Label, d); } else if (auto* itf = dynamic_cast<Interference1DLatticeItem*>(interference)) { addParameterItem(label, itf->positionVariance()); @@ -218,7 +218,7 @@ void ParameterTreeBuilder::addInterference(ParameterLabelItem* layoutLabel, auto* df = itf->decayFunction().currentItem(); auto* dfLabel = addLabel<Profile1DItemCatalog>(label, "Decay function", df); - for (const auto& d : df->profileProperties()) + for (auto& d : df->profileProperties()) addParameterItem(dfLabel, d); } else if (auto* itf = dynamic_cast<Interference2DLatticeItem*>(interference)) { addParameterItem(label, itf->positionVariance()); @@ -226,7 +226,7 @@ void ParameterTreeBuilder::addInterference(ParameterLabelItem* layoutLabel, auto* df = itf->decayFunction().currentItem(); auto* dfLabel = addLabel<Profile2DItemCatalog>(label, "Decay function", df); - for (const auto& d : df->profileProperties()) + for (auto& d : df->profileProperties()) addParameterItem(dfLabel, d); } else if (auto* itf = dynamic_cast<InterferenceFinite2DLatticeItem*>(interference)) { // domainSize1 and domainSize2 are of type UInt (not matching the double approach for tuning @@ -257,7 +257,7 @@ ParameterLabelItem* ParameterTreeBuilder::addParticle(ParameterLabelItem* parent if (const auto* particle = dynamic_cast<const ParticleItem*>(p)) { auto* formFactor = particle->formfactor(); auto* ffLabel = addLabel<FormFactorItemCatalog>(label, "Formfactor", formFactor); - for (const auto& d : formFactor->geometryProperties()) + for (auto& d : formFactor->geometryProperties()) addParameterItem(ffLabel, d); } else if (const auto* particleComposition = dynamic_cast<const CompoundItem*>(p)) { for (auto* p : particleComposition->particles()) @@ -274,7 +274,7 @@ ParameterLabelItem* ParameterTreeBuilder::addParticle(ParameterLabelItem* parent auto* outerShape = meso->outerShape().currentItem(); auto* ffLabel = addLabel<FormFactorItemCatalog>(label, "Outer shape", outerShape); - for (const auto& d : outerShape->geometryProperties()) + for (auto& d : outerShape->geometryProperties()) addParameterItem(ffLabel, d); auto* l = addParticle(label, meso->basisParticle(), false); @@ -289,7 +289,7 @@ void ParameterTreeBuilder::addLattice(ParameterLabelItem* parentLabel, { auto* lattice = itf->latticeType().currentItem(); auto* label = addLabel<Lattice2DItemCatalog>(parentLabel, "Lattice", lattice); - for (const auto& d : lattice->geometryValues(!itf->xiIntegration())) + for (auto& d : lattice->geometryValues(!itf->xiIntegration())) addParameterItem(label, d); }