Refactor: avoid local variable only used in range-based for loops

This commit is contained in:
Kristian Bendiksen committed 2024-04-04 10:24:21 +02:00
1 parent e862bd259f
commit 873282b339
12 files changed
+32 -68

No files matched your search

@@ -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 );