mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Refactor: avoid local variable only used in range-based for loops
This commit is contained in:
@@ -298,8 +298,7 @@ void RimSurfaceCollection::updateViews( const std::vector<RimSurface*>& surfsToR
|
||||
RimProject* proj = RimProject::current();
|
||||
|
||||
// Make sure the tree items are synchronized
|
||||
std::vector<Rim3dView*> views = proj->allViews();
|
||||
for ( auto view : views )
|
||||
for ( auto view : proj->allViews() )
|
||||
{
|
||||
view->updateViewTreeItems( RiaDefines::ItemIn3dView::SURFACE );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user