From f9f43a3fdf25b147774047241a3897868d44e034 Mon Sep 17 00:00:00 2001
From: "Dmitry Yu. Naumov" <github@naumov.de>
Date: Thu, 2 Jul 2015 13:23:52 +0000
Subject: [PATCH] [GL] Create GeoLib::ORIGIN only once.

---
 GeoLib/Point.cpp | 17 +++++++++++++++++
 GeoLib/Point.h   |  2 +-
 2 files changed, 18 insertions(+), 1 deletion(-)
 create mode 100644 GeoLib/Point.cpp

diff --git a/GeoLib/Point.cpp b/GeoLib/Point.cpp
new file mode 100644
index 00000000000..5f7b1df171b
--- /dev/null
+++ b/GeoLib/Point.cpp
@@ -0,0 +1,17 @@
+/**
+ * \file
+ *
+ * \copyright
+ * Copyright (c) 2012-2015, OpenGeoSys Community (http://www.opengeosys.org)
+ *            Distributed under a Modified BSD License.
+ *              See accompanying file LICENSE.txt or
+ *              http://www.opengeosys.org/project/license
+ *
+ */
+
+#include "Point.h"
+
+namespace GeoLib
+{
+    const Point ORIGIN(0, 0, 0);
+}
diff --git a/GeoLib/Point.h b/GeoLib/Point.h
index 4b27f267e0d..ad81168d0d5 100644
--- a/GeoLib/Point.h
+++ b/GeoLib/Point.h
@@ -66,7 +66,7 @@ protected:
 	void setID(std::size_t id) { _id = id; }
 };
 
-static const Point ORIGIN(0, 0, 0);
+extern const Point ORIGIN;
 }
 
 #endif /* POINT_H_ */
-- 
GitLab