@@ -118,7 +118,7 @@ auto point_to_polygon_distance(point_t point, polygon_t const &polygon,
118118
119119struct Cell
120120{
121- static constexpr double const SQRT2 = 1.4142135623730951 ;
121+ static constexpr double SQRT2 = 1.4142135623730951 ;
122122
123123 Cell (point_t c, double h, polygon_t const &polygon, double stretch)
124124 : center(c), half_size(h),
@@ -147,7 +147,7 @@ Cell make_centroid_cell(polygon_t const &polygon, double stretch)
147147
148148} // anonymous namespace
149149
150- point_t pole_of_inaccessibility (const polygon_t &polygon, double precision,
150+ point_t pole_of_inaccessibility (polygon_t const &polygon, double precision,
151151 double stretch)
152152{
153153 assert (stretch > 0 );
@@ -225,8 +225,8 @@ point_t pole_of_inaccessibility(const polygon_t &polygon, double precision,
225225 auto const h = cell.half_size / 2.0 ;
226226 auto const center = cell.center ;
227227
228- for (auto dy : {-h, h}) {
229- for (auto dx : {-h, h}) {
228+ for (auto const dy : {-h, h}) {
229+ for (auto const dx : {-h, h}) {
230230 Cell const c{point_t {center.x () + dx, center.y () + dy}, h,
231231 polygon, stretch};
232232 if (c.max > best_cell.dist ) {
0 commit comments