From ac372038f58b940cdcec54fb4fd955f95750714a Mon Sep 17 00:00:00 2001 From: Javier Jimenez Shaw Date: Wed, 29 Nov 2023 16:59:50 +0100 Subject: [PATCH] remove copy and move constructors from AxisDirection --- include/proj/coordinatesystem.hpp | 5 +++++ src/apps/proj.cpp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/include/proj/coordinatesystem.hpp b/include/proj/coordinatesystem.hpp index a26f4c1719..5aa444db23 100644 --- a/include/proj/coordinatesystem.hpp +++ b/include/proj/coordinatesystem.hpp @@ -60,6 +60,11 @@ class AxisDirection : public util::CodeList { valueOf(const std::string &nameIn) noexcept; //! @endcond + AxisDirection(const AxisDirection&) = delete; + AxisDirection& operator=(const AxisDirection&) = delete; + AxisDirection(AxisDirection&&) = delete; + AxisDirection& operator=(AxisDirection&&) = delete; + PROJ_DLL static const AxisDirection NORTH; PROJ_DLL static const AxisDirection NORTH_NORTH_EAST; PROJ_DLL static const AxisDirection NORTH_EAST; diff --git a/src/apps/proj.cpp b/src/apps/proj.cpp index 099c4b5dce..91295bc97c 100644 --- a/src/apps/proj.cpp +++ b/src/apps/proj.cpp @@ -555,7 +555,7 @@ int main(int argc, char **argv) { try { auto crs = dynamic_cast( P->iso_obj.get()); - auto dir = + auto& dir = crs->coordinateSystem()->axisList()[0]->direction(); swapAxisCrs = dir == NS_PROJ::cs::AxisDirection::NORTH || dir == NS_PROJ::cs::AxisDirection::SOUTH;