From d4663fe6dfab4e2b10591c408191556ca13073de Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Mon, 28 Aug 2017 15:16:12 +0200 Subject: [PATCH] #1767 Add const access to RifReaderInterface --- .../ProjectDataModel/RimReservoirCellResultsStorage.cpp | 8 ++++++++ .../ProjectDataModel/RimReservoirCellResultsStorage.h | 1 + 2 files changed, 9 insertions(+) diff --git a/ApplicationCode/ProjectDataModel/RimReservoirCellResultsStorage.cpp b/ApplicationCode/ProjectDataModel/RimReservoirCellResultsStorage.cpp index 83645e046a..fd0caf9cec 100644 --- a/ApplicationCode/ProjectDataModel/RimReservoirCellResultsStorage.cpp +++ b/ApplicationCode/ProjectDataModel/RimReservoirCellResultsStorage.cpp @@ -230,6 +230,14 @@ RifReaderInterface* RimReservoirCellResultsStorage::readerInterface() } +//-------------------------------------------------------------------------------------------------- +/// +//-------------------------------------------------------------------------------------------------- +const RifReaderInterface* RimReservoirCellResultsStorage::readerInterface() const +{ + return m_readerInterface.p(); +} + //-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- diff --git a/ApplicationCode/ProjectDataModel/RimReservoirCellResultsStorage.h b/ApplicationCode/ProjectDataModel/RimReservoirCellResultsStorage.h index bc668a54dc..6a5d42dad9 100644 --- a/ApplicationCode/ProjectDataModel/RimReservoirCellResultsStorage.h +++ b/ApplicationCode/ProjectDataModel/RimReservoirCellResultsStorage.h @@ -55,6 +55,7 @@ public: void setReaderInterface(RifReaderInterface* readerInterface); RifReaderInterface* readerInterface(); + const RifReaderInterface* readerInterface() const; void computeDepthRelatedResults(); bool isDataPresent(size_t scalarResultIndex) const;