diff --git a/src/simplnx/DataStructure/Geometry/RectGridGeom.cpp b/src/simplnx/DataStructure/Geometry/RectGridGeom.cpp index a8bf3376a7..3dbb780a6e 100644 --- a/src/simplnx/DataStructure/Geometry/RectGridGeom.cpp +++ b/src/simplnx/DataStructure/Geometry/RectGridGeom.cpp @@ -545,9 +545,9 @@ Point3D RectGridGeom::getPlaneCoords(usize idx) const std::pair RectGridGeom::getCellBounds(usize x, usize y, usize z) const { - auto xBnds = getXBounds(); - auto yBnds = getYBounds(); - auto zBnds = getZBounds(); + const auto& xBnds = getXBoundsRef(); + const auto& yBnds = getYBoundsRef(); + const auto& zBnds = getZBoundsRef(); Point3Df minCoords; minCoords[0] = static_cast((*xBnds)[x]);