mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Rename several child() and children() functions
This commit is contained in:
@@ -95,7 +95,7 @@ void RimAnnotationGroupCollection::addAnnotation( caf::PdmObject* annotation )
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimAnnotationGroupCollection::removeAnnotation( caf::PdmObject* annotation )
|
||||
{
|
||||
m_annotations.removeChildObject( annotation );
|
||||
m_annotations.removeChild( annotation );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -103,7 +103,7 @@ void RimAnnotationGroupCollection::removeAnnotation( caf::PdmObject* annotation
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::vector<caf::PdmObject*> RimAnnotationGroupCollection::annotations() const
|
||||
{
|
||||
return m_annotations.childObjects();
|
||||
return m_annotations.children();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -95,7 +95,7 @@ cvf::ref<RigPolyLinesData> RimUserDefinedPolylinesAnnotation::polyLinesData()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::vector<RimPolylineTarget*> RimUserDefinedPolylinesAnnotation::activeTargets() const
|
||||
{
|
||||
return m_targets.childObjects();
|
||||
return m_targets.children();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -113,7 +113,7 @@ void RimUserDefinedPolylinesAnnotation::appendTarget( const cvf::Vec3d& defaultP
|
||||
{
|
||||
RimPolylineTarget* target = nullptr;
|
||||
|
||||
auto targets = m_targets.childObjects();
|
||||
auto targets = m_targets.children();
|
||||
if ( targets.empty() )
|
||||
{
|
||||
target = new RimPolylineTarget();
|
||||
@@ -149,7 +149,7 @@ void RimUserDefinedPolylinesAnnotation::insertTarget( const RimPolylineTarget* t
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimUserDefinedPolylinesAnnotation::deleteTarget( RimPolylineTarget* targetToDelete )
|
||||
{
|
||||
m_targets.removeChildObject( targetToDelete );
|
||||
m_targets.removeChild( targetToDelete );
|
||||
delete targetToDelete;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user