From 4be8ed6682982ebe13c5d26d1ba2b21723e23c44 Mon Sep 17 00:00:00 2001
From: Thomas Fischer <thomas.fischer@ufz.de>
Date: Mon, 8 Jun 2020 15:22:39 +0200
Subject: [PATCH] [MeL/ME] Clang format FlipElements.

---
 MeshLib/MeshEditing/FlipElements.cpp | 12 ++++++------
 MeshLib/MeshEditing/FlipElements.h   |  3 ++-
 2 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/MeshLib/MeshEditing/FlipElements.cpp b/MeshLib/MeshEditing/FlipElements.cpp
index 159426bad8b..7910712a09f 100644
--- a/MeshLib/MeshEditing/FlipElements.cpp
+++ b/MeshLib/MeshEditing/FlipElements.cpp
@@ -28,7 +28,7 @@ std::unique_ptr<MeshLib::Element> createFlippedElement(
     }
 
     unsigned const n_nodes(elem.getNumberOfNodes());
-    auto elem_nodes = std::make_unique<MeshLib::Node* []>(n_nodes);
+    auto elem_nodes = std::make_unique<MeshLib::Node*[]>(n_nodes);
     for (unsigned i = 0; i < n_nodes; ++i)
     {
         elem_nodes[i] = nodes[elem.getNode(i)->getID()];
@@ -61,10 +61,11 @@ std::unique_ptr<MeshLib::Mesh> createFlippedMesh(MeshLib::Mesh const& mesh)
         return nullptr;
     }
 
-    std::vector<MeshLib::Node*> new_nodes (MeshLib::copyNodeVector(mesh.getNodes()));
-    std::vector<MeshLib::Element*> const& elems (mesh.getElements());
+    std::vector<MeshLib::Node*> new_nodes(
+        MeshLib::copyNodeVector(mesh.getNodes()));
+    std::vector<MeshLib::Element*> const& elems(mesh.getElements());
     std::vector<MeshLib::Element*> new_elems;
-    std::size_t n_elems (mesh.getNumberOfElements());
+    std::size_t n_elems(mesh.getNumberOfElements());
     new_elems.reserve(n_elems);
 
     for (std::size_t i = 0; i < n_elems; ++i)
@@ -77,5 +78,4 @@ std::unique_ptr<MeshLib::Mesh> createFlippedMesh(MeshLib::Mesh const& mesh)
                                            new_elems, mesh.getProperties());
 }
 
-} // end namespace MeshLib
-
+}  // end namespace MeshLib
diff --git a/MeshLib/MeshEditing/FlipElements.h b/MeshLib/MeshEditing/FlipElements.h
index 003e7907f9f..040d5383954 100644
--- a/MeshLib/MeshEditing/FlipElements.h
+++ b/MeshLib/MeshEditing/FlipElements.h
@@ -27,7 +27,8 @@ class Node;
  * @param nodes node vector used for the copy of the element
  * @return a flipped copy of the element
  */
-std::unique_ptr<MeshLib::Element> createFlippedElement(MeshLib::Element const& elem, std::vector<MeshLib::Node*> const& nodes);
+std::unique_ptr<MeshLib::Element> createFlippedElement(
+    MeshLib::Element const& elem, std::vector<MeshLib::Node*> const& nodes);
 
 /**
  * Creates a copy of a 1d / 2d mesh where the node order of all elements
-- 
GitLab