Refactor: rename confusing push_back method on view collections.

This commit is contained in:
Kristian Bendiksen
2024-04-17 13:46:31 +02:00
parent ade044adbf
commit 174123f8b5
7 changed files with 12 additions and 12 deletions

View File

@@ -33,7 +33,7 @@ std::vector<RimGeoMechContourMapView*> RimGeoMechContourMapViewCollection::views
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimGeoMechContourMapViewCollection::push_back( RimGeoMechContourMapView* contourMap )
void RimGeoMechContourMapViewCollection::addView( RimGeoMechContourMapView* contourMap )
{
m_contourMapViews.push_back( contourMap );
}

View File

@@ -33,7 +33,7 @@ public:
~RimGeoMechContourMapViewCollection() override;
std::vector<RimGeoMechContourMapView*> views();
void push_back( RimGeoMechContourMapView* contourMap );
void addView( RimGeoMechContourMapView* contourMap );
private:
caf::PdmChildArrayField<RimGeoMechContourMapView*> m_contourMapViews;

View File

@@ -299,7 +299,7 @@ void RimEclipseCase::initAfterRead()
{
contourMap->setEclipseCase( this );
m_contourMapCollection_OBSOLETE->removeChild( contourMap );
mapViewColl->push_back( contourMap );
mapViewColl->addView( contourMap );
}
m_contourMapCollection_OBSOLETE->clearWithoutDelete();

View File

@@ -33,7 +33,7 @@ std::vector<RimEclipseContourMapView*> RimEclipseContourMapViewCollection::views
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimEclipseContourMapViewCollection::push_back( RimEclipseContourMapView* contourMap )
void RimEclipseContourMapViewCollection::addView( RimEclipseContourMapView* contourMap )
{
m_contourMapViews.push_back( contourMap );
}

View File

@@ -33,7 +33,7 @@ public:
~RimEclipseContourMapViewCollection() override;
std::vector<RimEclipseContourMapView*> views();
void push_back( RimEclipseContourMapView* contourMap );
void addView( RimEclipseContourMapView* contourMap );
void onChildDeleted( caf::PdmChildArrayFieldHandle* childArray, std::vector<caf::PdmObjectHandle*>& referringObjects ) override;