Skip to content

v0.2.54..v0.2.55 changeset MapProjector.h

Garret Voltz edited this page Aug 14, 2020 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/util/MapProjector.h b/hoot-core/src/main/cpp/hoot/core/util/MapProjector.h
index 7882c6e..11f6c87 100644
--- a/hoot-core/src/main/cpp/hoot/core/util/MapProjector.h
+++ b/hoot-core/src/main/cpp/hoot/core/util/MapProjector.h
@@ -22,7 +22,7 @@
  * This will properly maintain the copyright information. DigitalGlobe
  * copyrights will be updated automatically.
  *
- * @copyright Copyright (C) 2015, 2016, 2017, 2018, 2019 DigitalGlobe (http://www.digitalglobe.com/)
+ * @copyright Copyright (C) 2015, 2016, 2017, 2018, 2019, 2020 DigitalGlobe (http://www.digitalglobe.com/)
  */
 #ifndef __MAP_PROJECTOR_H__
 #define __MAP_PROJECTOR_H__
@@ -173,8 +173,6 @@ private:
     double score;
   };
 
-  MapProjector() {}
-
   static std::shared_ptr<MapProjector> _theInstance;
 
   static bool _angleLessThan(const PlanarTestResult& p1, const PlanarTestResult& p2);
@@ -192,6 +190,13 @@ private:
   size_t _findBestScore(std::vector<PlanarTestResult>& results);
 
   static bool _scoreLessThan(const PlanarTestResult& p1, const PlanarTestResult& p2);
+
+  /** Default constructor/destructor */
+  MapProjector() = default;
+  ~MapProjector() = default;
+  /** Delete copy constructor and assignment operator */
+  MapProjector(const MapProjector&) = delete;
+  MapProjector& operator=(const MapProjector&) = delete;
 };
 
 class ReprojectCoordinateFilter : public geos::geom::CoordinateFilter
Clone this wiki locally