From b305202a35d01d81514ff7df5ada2adeec38ae8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacob=20St=C3=B8ren?= Date: Mon, 22 Aug 2016 16:59:22 +0200 Subject: [PATCH] #478 Made access function const in ActiveCellInfo --- ApplicationCode/ReservoirDataModel/RigActiveCellInfo.cpp | 2 +- ApplicationCode/ReservoirDataModel/RigActiveCellInfo.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ApplicationCode/ReservoirDataModel/RigActiveCellInfo.cpp b/ApplicationCode/ReservoirDataModel/RigActiveCellInfo.cpp index 1a27ad8c62..9354aea2ba 100644 --- a/ApplicationCode/ReservoirDataModel/RigActiveCellInfo.cpp +++ b/ApplicationCode/ReservoirDataModel/RigActiveCellInfo.cpp @@ -162,7 +162,7 @@ void RigActiveCellInfo::IJKBoundingBox(cvf::Vec3st& min, cvf::Vec3st& max) const //-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- -void RigActiveCellInfo::gridActiveCellCounts(size_t gridIndex, size_t& activeCellCount) +void RigActiveCellInfo::gridActiveCellCounts(size_t gridIndex, size_t& activeCellCount) const { activeCellCount = m_perGridActiveCellInfo[gridIndex].activeCellCount(); } diff --git a/ApplicationCode/ReservoirDataModel/RigActiveCellInfo.h b/ApplicationCode/ReservoirDataModel/RigActiveCellInfo.h index 93c23ba12a..87a9224f9f 100644 --- a/ApplicationCode/ReservoirDataModel/RigActiveCellInfo.h +++ b/ApplicationCode/ReservoirDataModel/RigActiveCellInfo.h @@ -46,7 +46,7 @@ public: void setGridCount(size_t gridCount); void setGridActiveCellCounts(size_t gridIndex, size_t activeCellCount); - void gridActiveCellCounts(size_t gridIndex, size_t& activeCellCount); + void gridActiveCellCounts(size_t gridIndex, size_t& activeCellCount) const; void computeDerivedData(); void setIJKBoundingBox(const cvf::Vec3st& min, const cvf::Vec3st& max);