mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Change API for PdmObjectHandle and PdmFieldHandle
* Refactor interface to PdmObjectHandle and PdmFieldHandle Return objects instead of passing in structures as parameters * Add nodiscard to several functions * Remove redundant this-> * Rename to ptrReferencedObjectsByType
This commit is contained in:
@@ -278,7 +278,7 @@ std::vector<RimGenericParameter*> RimParameterGroup::parameters() const
|
||||
{
|
||||
std::vector<RimGenericParameter*> retParams;
|
||||
|
||||
for ( const auto& p : m_parameters.children() )
|
||||
for ( const auto& p : m_parameters.childrenByType() )
|
||||
{
|
||||
if ( isListParameter( p->name() ) ) continue;
|
||||
retParams.push_back( p );
|
||||
@@ -286,7 +286,7 @@ std::vector<RimGenericParameter*> RimParameterGroup::parameters() const
|
||||
|
||||
for ( const auto& list : m_lists )
|
||||
{
|
||||
retParams.push_back( list->getAsListParameter( m_parameters.children() ) );
|
||||
retParams.push_back( list->getAsListParameter( m_parameters.childrenByType() ) );
|
||||
}
|
||||
|
||||
return retParams;
|
||||
@@ -322,7 +322,7 @@ void RimParameterGroup::setParameterValue( QString name, QString value )
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimGenericParameter* RimParameterGroup::parameter( QString name ) const
|
||||
{
|
||||
for ( auto& p : m_parameters.children() )
|
||||
for ( auto& p : m_parameters.childrenByType() )
|
||||
{
|
||||
if ( p->name() == name )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user