From dfc84cc39fafaea7ef1ffb8b47e81f9a5f8523c1 Mon Sep 17 00:00:00 2001
From: Thomas Fischer <thomas.fischer@ufz.de>
Date: Tue, 7 Jul 2015 15:03:25 +0200
Subject: [PATCH] [MeL] Node constructor implementations.

Using std::array-constructor version of Point3dWithID, which is the base class of Node.
---
 MeshLib/Node.cpp | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/MeshLib/Node.cpp b/MeshLib/Node.cpp
index ece3d311e82..5ed8cb02e9b 100644
--- a/MeshLib/Node.cpp
+++ b/MeshLib/Node.cpp
@@ -18,7 +18,8 @@
 namespace MeshLib {
 
 Node::Node(const double coords[3], std::size_t id)
-	: MathLib::Point3dWithID(coords, id)
+	: MathLib::Point3dWithID(
+		std::array<double,3>{{coords[0], coords[1], coords[2]}}, id)
 {
 }
 
@@ -33,7 +34,7 @@ Node::Node(double x, double y, double z, std::size_t id)
 }
 
 Node::Node(const Node &node)
-	: MathLib::Point3dWithID(node.getCoords(), node.getID())
+	: MathLib::Point3dWithID(node._x, node.getID())
 {
 }
 
-- 
GitLab