From a982e6952577849e9f9a4c76f8ec8c18b912276d Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Mon, 29 Jul 2024 12:35:31 +0100 Subject: [PATCH] clang-format --- include/mapnik/projection.hpp | 1 + test/unit/projection/proj_transform.cpp | 9 ++++----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/mapnik/projection.hpp b/include/mapnik/projection.hpp index 032b1370b..5a057b263 100644 --- a/include/mapnik/projection.hpp +++ b/include/mapnik/projection.hpp @@ -81,6 +81,7 @@ class MAPNIK_DECL projection std::string description() const; void init_proj(); std::optional> area_of_use() const; + private: void swap(projection& rhs); diff --git a/test/unit/projection/proj_transform.cpp b/test/unit/projection/proj_transform.cpp index 0b1829939..d5ae1cbbf 100644 --- a/test/unit/projection/proj_transform.cpp +++ b/test/unit/projection/proj_transform.cpp @@ -210,15 +210,14 @@ TEST_CASE("projection transform") mapnik::projection prj_geog("epsg:4326"); mapnik::projection prj_proj("epsg:3995"); - mapnik::proj_transform prj_trans_fwd(prj_proj, prj_geog); mapnik::proj_transform prj_trans_rev(prj_geog, prj_proj); // bounds - const mapnik::box2d bounds{-180.0,60.0,180.0,90.0}; + const mapnik::box2d bounds{-180.0, 60.0, 180.0, 90.0}; { - // projected bounds - mapnik::box2d projected_bounds{-3299207.53,-3333134.03, 3299207.53, 3333134.03}; + // projected bounds + mapnik::box2d projected_bounds{-3299207.53, -3333134.03, 3299207.53, 3333134.03}; CHECKED_IF(prj_trans_fwd.forward(projected_bounds, PROJ_ENVELOPE_POINTS)) { CHECK(projected_bounds.minx() == Approx(bounds.minx())); @@ -230,7 +229,7 @@ TEST_CASE("projection transform") { // check the same logic works for .backward() - mapnik::box2d projected_bounds{-3299207.53,-3333134.03, 3299207.53, 3333134.03}; + mapnik::box2d projected_bounds{-3299207.53, -3333134.03, 3299207.53, 3333134.03}; CHECKED_IF(prj_trans_rev.backward(projected_bounds, PROJ_ENVELOPE_POINTS)) { CHECK(projected_bounds.minx() == Approx(bounds.minx()));