mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Refactor: rename confusing push_back method on view collections.
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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 );
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user