From 4bef3abda800318d9dfff918557043af2cd61c51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Jensen?= Date: Tue, 5 Dec 2017 15:00:54 +0100 Subject: [PATCH] RicCellRangeUi. Fix build error. Calling constructor instead of using initializer --- ApplicationCode/Commands/ExportCommands/RicCellRangeUi.cpp | 4 ++-- ApplicationCode/Commands/ExportCommands/RicExportCarfinUi.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ApplicationCode/Commands/ExportCommands/RicCellRangeUi.cpp b/ApplicationCode/Commands/ExportCommands/RicCellRangeUi.cpp index ab82bc781d..1af2e4833b 100644 --- a/ApplicationCode/Commands/ExportCommands/RicCellRangeUi.cpp +++ b/ApplicationCode/Commands/ExportCommands/RicCellRangeUi.cpp @@ -82,7 +82,7 @@ void RicCellRangeUi::setCase(RimCase* rimCase) //-------------------------------------------------------------------------------------------------- caf::VecIjk RicCellRangeUi::start() const { - return caf::VecIjk{m_startIndexI, m_startIndexJ, m_startIndexK}; + return caf::VecIjk(m_startIndexI, m_startIndexJ, m_startIndexK); } //-------------------------------------------------------------------------------------------------- @@ -90,7 +90,7 @@ caf::VecIjk RicCellRangeUi::start() const //-------------------------------------------------------------------------------------------------- caf::VecIjk RicCellRangeUi::count() const { - return caf::VecIjk{ m_cellCountI, m_cellCountJ, m_cellCountK }; + return caf::VecIjk(m_cellCountI, m_cellCountJ, m_cellCountK); } //-------------------------------------------------------------------------------------------------- diff --git a/ApplicationCode/Commands/ExportCommands/RicExportCarfinUi.cpp b/ApplicationCode/Commands/ExportCommands/RicExportCarfinUi.cpp index 6940367e9e..11e8e15455 100644 --- a/ApplicationCode/Commands/ExportCommands/RicExportCarfinUi.cpp +++ b/ApplicationCode/Commands/ExportCommands/RicExportCarfinUi.cpp @@ -79,7 +79,7 @@ int RicExportCarfinUi::maxWellCount() const //-------------------------------------------------------------------------------------------------- caf::VecIjk RicExportCarfinUi::lgrCellCount() const { - return caf::VecIjk{m_cellCountI, m_cellCountJ, m_cellCountK}; + return caf::VecIjk (m_cellCountI, m_cellCountJ, m_cellCountK); } //--------------------------------------------------------------------------------------------------