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:
@@ -125,8 +125,7 @@ QString RimSurfaceIntersectionCurve::objectName() const
|
||||
{
|
||||
if ( m_surface1() )
|
||||
{
|
||||
RimEnsembleSurface* ensembleSurface = nullptr;
|
||||
m_surface1()->firstAncestorOfType( ensembleSurface );
|
||||
auto ensembleSurface = m_surface1()->firstAncestorOfType<RimEnsembleSurface>();
|
||||
if ( ensembleSurface )
|
||||
{
|
||||
QString text;
|
||||
|
||||
Reference in New Issue
Block a user