From d1579bd792df6d4cb03efd02d51fc3a6b914881c Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Thu, 26 Oct 2017 13:34:42 +0200 Subject: [PATCH] #2045 Curve Creator : Use PdmPointer --- .../Commands/SummaryPlotCommands/RicSummaryCurveCreator.cpp | 3 --- .../Commands/SummaryPlotCommands/RicSummaryCurveCreator.h | 3 +-- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/ApplicationCode/Commands/SummaryPlotCommands/RicSummaryCurveCreator.cpp b/ApplicationCode/Commands/SummaryPlotCommands/RicSummaryCurveCreator.cpp index 527a732e91..6f4cc3b4dc 100644 --- a/ApplicationCode/Commands/SummaryPlotCommands/RicSummaryCurveCreator.cpp +++ b/ApplicationCode/Commands/SummaryPlotCommands/RicSummaryCurveCreator.cpp @@ -61,8 +61,6 @@ CAF_PDM_SOURCE_INIT(RicSummaryCurveCreator, "RicSummaryCurveCreator"); //-------------------------------------------------------------------------------------------------- RicSummaryCurveCreator::RicSummaryCurveCreator() { - CAF_PDM_InitFieldNoDefault(&m_selectionEditor, "SelectionEditor", "Selection Editor", "", "", ""); - CAF_PDM_InitFieldNoDefault(&m_targetPlot, "TargetPlot", "Target Plot", "", "", ""); CAF_PDM_InitField(&m_useAutoAppearanceAssignment, "UseAutoAppearanceAssignment", true, "Auto", "", "", ""); @@ -662,7 +660,6 @@ void RicSummaryCurveCreator::setCurveDefSelectionObject(RiuSummaryCurveDefSelect m_selectionEditor = curveDefSelection; m_selectionEditor->setFieldChangedHandler([this]() { this->selectionEditorFieldChanged(); }); m_selectionEditor->setMultiSelectionMode(true); - m_selectionEditor.uiCapability()->setUiTreeChildrenHidden(true); } //-------------------------------------------------------------------------------------------------- diff --git a/ApplicationCode/Commands/SummaryPlotCommands/RicSummaryCurveCreator.h b/ApplicationCode/Commands/SummaryPlotCommands/RicSummaryCurveCreator.h index e58e7d662d..62e765ed27 100644 --- a/ApplicationCode/Commands/SummaryPlotCommands/RicSummaryCurveCreator.h +++ b/ApplicationCode/Commands/SummaryPlotCommands/RicSummaryCurveCreator.h @@ -94,8 +94,7 @@ private: void selectionEditorFieldChanged(); private: - - caf::PdmPtrField m_selectionEditor; + caf::PdmPointer m_selectionEditor; caf::PdmPtrField m_targetPlot;