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

@@ -352,10 +352,7 @@ RimWellPath* RimWellPlotTools::wellPathFromWellLogFile( const RimWellLogFile* we
RimProject* const project = RimProject::current();
for ( const auto& oilField : project->oilFields )
{
auto wellPaths = std::vector<RimWellPath*>( oilField->wellPathCollection()->wellPaths.begin(),
oilField->wellPathCollection()->wellPaths.end() );
for ( const auto& wellPath : wellPaths )
for ( const auto& wellPath : oilField->wellPathCollection()->wellPaths() )
{
for ( RimWellLogFile* const file : wellPath->wellLogFiles() )
{