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:
@@ -73,11 +73,8 @@ void RicAddWellLogToPlotFeature::onActionTriggered( bool isChecked )
|
||||
{
|
||||
RimWellLogFileChannel* wellLog = selection[wlIdx];
|
||||
|
||||
RimWellPath* wellPath = nullptr;
|
||||
wellLog->firstAncestorOrThisOfType( wellPath );
|
||||
|
||||
RimWellLogFile* wellLogFile = nullptr;
|
||||
wellLog->firstAncestorOrThisOfType( wellLogFile );
|
||||
auto wellPath = wellLog->firstAncestorOrThisOfType<RimWellPath>();
|
||||
auto wellLogFile = wellLog->firstAncestorOrThisOfType<RimWellLogFile>();
|
||||
if ( wellLogFile )
|
||||
{
|
||||
RimWellLogFileCurve* curve = new RimWellLogFileCurve;
|
||||
|
||||
Reference in New Issue
Block a user