From c7757ecb48fa6e9918bc4a888bf9936a282408a1 Mon Sep 17 00:00:00 2001 From: Thomas Fischer <thomas.fischer@ufz.de> Date: Wed, 19 May 2021 16:08:23 +0200 Subject: [PATCH] [A/IO/Gmsh] Constify methods of GMSHPolygonTree. --- Applications/FileIO/Gmsh/GMSHPolygonTree.cpp | 4 ++-- Applications/FileIO/Gmsh/GMSHPolygonTree.h | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Applications/FileIO/Gmsh/GMSHPolygonTree.cpp b/Applications/FileIO/Gmsh/GMSHPolygonTree.cpp index 765c8c63484..ac052d20c2a 100644 --- a/Applications/FileIO/Gmsh/GMSHPolygonTree.cpp +++ b/Applications/FileIO/Gmsh/GMSHPolygonTree.cpp @@ -501,7 +501,7 @@ void GMSHPolygonTree::writeAdditionalPointData(std::size_t& pnt_id_offset, } void GMSHPolygonTree::getPointsFromSubPolygons( - std::vector<GeoLib::Point const*>& pnts) + std::vector<GeoLib::Point const*>& pnts) const { for (std::list<SimplePolygonTree*>::const_iterator it(_children.begin()); it != _children.end(); ++it) @@ -511,7 +511,7 @@ void GMSHPolygonTree::getPointsFromSubPolygons( } void GMSHPolygonTree::getStationsInsideSubPolygons( - std::vector<GeoLib::Point const*>& stations) + std::vector<GeoLib::Point const*>& stations) const { const std::size_t n_stations(_stations.size()); for (std::size_t k(0); k < n_stations; k++) diff --git a/Applications/FileIO/Gmsh/GMSHPolygonTree.h b/Applications/FileIO/Gmsh/GMSHPolygonTree.h index bcd17132b22..3f16aff8c30 100644 --- a/Applications/FileIO/Gmsh/GMSHPolygonTree.h +++ b/Applications/FileIO/Gmsh/GMSHPolygonTree.h @@ -88,8 +88,10 @@ public: void writeAdditionalPointData(std::size_t & pnt_id_offset, std::size_t sfc_number, std::ostream& out) const; private: - void getPointsFromSubPolygons(std::vector<GeoLib::Point const*>& pnts); - void getStationsInsideSubPolygons(std::vector<GeoLib::Point const*>& stations); + void getPointsFromSubPolygons( + std::vector<GeoLib::Point const*>& pnts) const; + void getStationsInsideSubPolygons( + std::vector<GeoLib::Point const*>& stations) const; void checkIntersectionsSegmentExistingPolylines( GeoLib::PolylineWithSegmentMarker* ply, GeoLib::Polyline::SegmentIterator const& seg_it); -- GitLab