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:
@@ -114,7 +114,7 @@ RimEclipseCase* RicAddEclipseInputPropertyFeature::getEclipseCase() const
|
||||
RimEclipseCellColors* cellColors = caf::SelectionManager::instance()->selectedItemOfType<RimEclipseCellColors>();
|
||||
if ( cellColors )
|
||||
{
|
||||
cellColors->firstAncestorOrThisOfType( eclipseCase );
|
||||
eclipseCase = cellColors->firstAncestorOrThisOfType<RimEclipseCase>();
|
||||
if ( eclipseCase )
|
||||
{
|
||||
return eclipseCase;
|
||||
@@ -124,7 +124,7 @@ RimEclipseCase* RicAddEclipseInputPropertyFeature::getEclipseCase() const
|
||||
RimEclipseView* eclipseView = caf::SelectionManager::instance()->selectedItemOfType<RimEclipseView>();
|
||||
if ( eclipseView )
|
||||
{
|
||||
eclipseView->firstAncestorOrThisOfType( eclipseCase );
|
||||
eclipseCase = eclipseView->firstAncestorOrThisOfType<RimEclipseCase>();
|
||||
if ( eclipseCase )
|
||||
{
|
||||
return eclipseCase;
|
||||
|
||||
Reference in New Issue
Block a user