Rename several child() and children() functions

This commit is contained in:
Magne Sjaastad
2022-05-31 13:08:07 +02:00
parent c199f960e3
commit c74701b687
179 changed files with 429 additions and 431 deletions

View File

@@ -60,7 +60,7 @@ RimFlowPlotCollection::~RimFlowPlotCollection()
{
delete m_defaultWellAllocPlot();
m_storedWellAllocPlots.deleteAllChildObjects();
m_storedWellAllocPlots.deleteChildren();
}
//--------------------------------------------------------------------------------------------------
@@ -78,8 +78,8 @@ void RimFlowPlotCollection::deleteAllPlots()
// delete m_dbgWellDistributionPlot;
delete m_wellDistributionPlotCollection;
m_storedWellAllocPlots.deleteAllChildObjects();
m_storedFlowCharacteristicsPlots.deleteAllChildObjects();
m_storedWellAllocPlots.deleteChildren();
m_storedFlowCharacteristicsPlots.deleteChildren();
}
//--------------------------------------------------------------------------------------------------

View File

@@ -99,7 +99,7 @@ RimWellDistributionPlotCollection::RimWellDistributionPlotCollection()
RimWellDistributionPlotCollection::~RimWellDistributionPlotCollection()
{
removeMdiWindowFromMdiArea();
m_plots.deleteAllChildObjects();
m_plots.deleteChildren();
cleanupBeforeClose();
}
@@ -384,7 +384,7 @@ void RimWellDistributionPlotCollection::updatePlots()
//--------------------------------------------------------------------------------------------------
void RimWellDistributionPlotCollection::cleanupBeforeClose()
{
auto plotVector = m_plots.childObjects();
auto plotVector = m_plots.children();
for ( size_t tIdx = 0; tIdx < plotVector.size(); ++tIdx )
{
plotVector[tIdx]->detachAllCurves();

View File

@@ -1045,7 +1045,7 @@ void RimWellPltPlot::initAfterLoad()
//--------------------------------------------------------------------------------------------------
void RimWellPltPlot::syncSourcesIoFieldFromGuiField()
{
m_selectedSourcesForIo.clear();
m_selectedSourcesForIo.clearWithoutDelete();
for ( const RifDataSourceForRftPlt& addr : m_selectedSources() )
{

View File

@@ -1360,7 +1360,7 @@ void RimWellRftPlot::createEnsembleCurveSets()
for ( RimWellRftEnsembleCurveSet* curveSet : curveSetsToDelete )
{
m_ensembleCurveSets.removeChildObject( curveSet );
m_ensembleCurveSets.removeChild( curveSet );
delete curveSet;
}