From 65b3affada6191f61a32e4848f3a6d7e6bba4adf 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 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Applications/FileIO/Gmsh/GMSHPolygonTree.cpp b/Applications/FileIO/Gmsh/GMSHPolygonTree.cpp index db5b2124b14..9f8755ca472 100644 --- a/Applications/FileIO/Gmsh/GMSHPolygonTree.cpp +++ b/Applications/FileIO/Gmsh/GMSHPolygonTree.cpp @@ -499,7 +499,8 @@ void GMSHPolygonTree::getPointsFromSubPolygons( { for (auto const* child : *this) { - dynamic_cast<GMSHPolygonTree*>(child)->getPointsFromSubPolygons(pnts); + dynamic_cast<GMSHPolygonTree const*>(child)->getPointsFromSubPolygons( + pnts); } } @@ -514,8 +515,8 @@ void GMSHPolygonTree::getStationsInsideSubPolygons( for (auto const* child : *this) { - dynamic_cast<GMSHPolygonTree*>(child)->getStationsInsideSubPolygons( - stations); + dynamic_cast<GMSHPolygonTree const*>(child) + ->getStationsInsideSubPolygons(stations); } } -- GitLab