mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Remove direct access to the well path field in RimWellPathCollection
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user