Skip to content
Snippets Groups Projects
Commit 81bd5e9c authored by Mikhail Svechnikov's avatar Mikhail Svechnikov
Browse files

rm unneeded const from reference_wrapper

parent 6ae8038a
No related branches found
No related tags found
1 merge request!1165GUI: cleanup after previous changes
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment