mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Use cleaner vector iteration
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user