Use cleaner vector iteration

This commit is contained in:
Bjørnar Grip Fjær
2017-04-25 09:41:17 +02:00
parent 9dfeef69bf
commit 19b9afe4cb

View File

@@ -275,9 +275,9 @@ void RimSummaryCurveFilter::fieldChangedByUi(const caf::PdmFieldHandle* changedF
}
else if (changedField == &m_showLegend)
{
for (size_t i = 0; i < m_curves().size(); ++i)
for (auto curve : m_curves)
{
m_curves()[i]->showLegend(m_showLegend());
curve->showLegend(m_showLegend());
}
}
else