From cfe8d0deaa6e92a5ccf560578b209cce80ee21dc Mon Sep 17 00:00:00 2001
From: Thomas Fischer <thomas.fischer@ufz.de>
Date: Tue, 2 Jun 2020 17:52:20 +0200
Subject: [PATCH] [MeL/Mesh2MeshInterpolation] Constify dest_mesh.

---
 MeshLib/MeshEditing/Mesh2MeshPropertyInterpolation.cpp | 3 ++-
 MeshLib/MeshEditing/Mesh2MeshPropertyInterpolation.h   | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/MeshLib/MeshEditing/Mesh2MeshPropertyInterpolation.cpp b/MeshLib/MeshEditing/Mesh2MeshPropertyInterpolation.cpp
index c72c61fa6b4..0801ac22775 100644
--- a/MeshLib/MeshEditing/Mesh2MeshPropertyInterpolation.cpp
+++ b/MeshLib/MeshEditing/Mesh2MeshPropertyInterpolation.cpp
@@ -84,7 +84,8 @@ bool Mesh2MeshPropertyInterpolation::setPropertiesForMesh(Mesh& dest_mesh) const
 }
 
 void Mesh2MeshPropertyInterpolation::interpolatePropertiesForMesh(
-    Mesh& dest_mesh, MeshLib::PropertyVector<double>& dest_properties) const
+    Mesh const& dest_mesh,
+    MeshLib::PropertyVector<double>& dest_properties) const
 {
     std::vector<double> interpolated_src_node_properties(
         _src_mesh.getNumberOfNodes());
diff --git a/MeshLib/MeshEditing/Mesh2MeshPropertyInterpolation.h b/MeshLib/MeshEditing/Mesh2MeshPropertyInterpolation.h
index becf37c8a01..636f4ba6a4b 100644
--- a/MeshLib/MeshEditing/Mesh2MeshPropertyInterpolation.h
+++ b/MeshLib/MeshEditing/Mesh2MeshPropertyInterpolation.h
@@ -53,7 +53,7 @@ private:
      * @param dest_properties
      */
     void interpolatePropertiesForMesh(
-        Mesh& dest_mesh,
+        Mesh const& dest_mesh,
         MeshLib::PropertyVector<double>& dest_properties) const;
 
     /**
-- 
GitLab