mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-29 16:40:20 -05:00
Replace RimTools::wellPathCollection() with RimWellPathCollection::instance()
Remove the redundant wrapper function and update all call sites to use RimWellPathCollection::instance() directly. Remove unused #include "RimTools.h" from files using RimWellPathCollection::instance() directly
This commit is contained in:
1 parent
211ae24241
commit
83f667cdf8
43 files changed
+60
-120
No files matched your search
+2
-4
@@ -22,7 +22,6 @@
|
||||
#include "RimGridView.h"
|
||||
#include "RimProject.h"
|
||||
#include "RimRegularLegendConfig.h"
|
||||
#include "RimTools.h"
|
||||
#include "RimWellLogTrack.h"
|
||||
#include "RimWellMeasurement.h"
|
||||
#include "RimWellMeasurementCollection.h"
|
||||
@@ -88,7 +87,7 @@ std::vector<RimWellMeasurementInView*> RimWellMeasurementInViewCollection::visib
|
||||
|
||||
if ( m_linkWellVisibility )
|
||||
{
|
||||
RimWellPathCollection* wellPathCollection = RimTools::wellPathCollection();
|
||||
RimWellPathCollection* wellPathCollection = RimWellPathCollection::instance();
|
||||
|
||||
auto wellPath = wellPathCollection->tryFindMatchingWellPath( wellName );
|
||||
if ( wellPath && !wellPath->showWellPath() ) return {};
|
||||
@@ -130,8 +129,7 @@ void RimWellMeasurementInViewCollection::fieldChangedByUi( const caf::PdmFieldHa
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimWellMeasurementInViewCollection::syncWithChangesInWellMeasurementCollection()
|
||||
{
|
||||
RimWellPathCollection* wellPathCollection = RimTools::wellPathCollection();
|
||||
if ( wellPathCollection )
|
||||
if ( auto wellPathCollection = RimWellPathCollection::instance() )
|
||||
{
|
||||
const RimWellMeasurementCollection* measurementCollection = wellPathCollection->measurementCollection();
|
||||
|
||||
|
||||
Reference in new issue
Block a user