From 9a132d5db9414f5dab9a752880c547f889c3b51a Mon Sep 17 00:00:00 2001 From: Dmitri Naumov <dmitri.naumov@ufz.de> Date: Mon, 20 Jun 2016 15:50:54 +0200 Subject: [PATCH] [MeL] Remove unnecessary temporary. --- MeshLib/MeshEditing/FlipElements.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MeshLib/MeshEditing/FlipElements.cpp b/MeshLib/MeshEditing/FlipElements.cpp index 828e5183849..38e387749ea 100644 --- a/MeshLib/MeshEditing/FlipElements.cpp +++ b/MeshLib/MeshEditing/FlipElements.cpp @@ -56,8 +56,8 @@ std::unique_ptr<MeshLib::Mesh> createFlippedMesh(MeshLib::Mesh const& mesh) for (std::size_t i=0; i<n_elems; ++i) new_elems.push_back(createFlippedElement(*elems[i], new_nodes).release()); - const MeshLib::Properties& new_props (mesh.getProperties()); - return std::unique_ptr<MeshLib::Mesh>(new MeshLib::Mesh("FlippedElementMesh", new_nodes, new_elems, new_props)); + return std::unique_ptr<MeshLib::Mesh>(new MeshLib::Mesh( + "FlippedElementMesh", new_nodes, new_elems, mesh.getProperties())); } } // end namespace MeshLib -- GitLab