Remove direct access to the well path field in RimWellPathCollection

This commit is contained in:
Gaute Lindkvist
2020-10-06 15:00:39 +02:00
parent aceac43652
commit 6622328622
16 changed files with 126 additions and 153 deletions

View File

@@ -1118,16 +1118,16 @@ RimWellPath* RimProject::wellPathByName( const QString& wellPathName ) const
//--------------------------------------------------------------------------------------------------
std::vector<RimWellPath*> RimProject::allWellPaths() const
{
std::vector<RimWellPath*> paths;
std::vector<RimWellPath*> wellPaths;
for ( const auto& oilField : oilFields() )
{
auto wellPathColl = oilField->wellPathCollection();
for ( const auto& path : wellPathColl->wellPaths )
for ( auto wellPath : wellPathColl->wellPaths() )
{
paths.push_back( path );
wellPaths.push_back( wellPath );
}
}
return paths;
return wellPaths;
}
//--------------------------------------------------------------------------------------------------