#7727 Well Path : Simplify access to all well paths

This commit is contained in:
Magne Sjaastad committed 2021-05-27 12:52:57 +02:00
1 parent 087cf41773
commit afb293db52
6 files changed
+9 -24

No files matched your search

@@ -270,7 +270,7 @@ std::vector<RimWellPath*>
scheduleRedrawAffectedViews();
updateAllRequiredEditors();
return topLevelWellPaths();
return allWellPaths();
}
//--------------------------------------------------------------------------------------------------
@@ -285,22 +285,12 @@ void RimWellPathCollection::addWellPath( gsl::not_null<RimWellPath*> wellPath, b
m_mostRecentlyUpdatedWellPath = wellPath;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
std::vector<RimWellPath*> RimWellPathCollection::topLevelWellPaths() const
{
return m_wellPaths.childObjects();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
std::vector<RimWellPath*> RimWellPathCollection::allWellPaths() const
{
std::vector<RimWellPath*> wellPaths;
descendantsOfType( wellPaths );
return wellPaths;
return m_wellPaths.childObjects();
}
//--------------------------------------------------------------------------------------------------