From 5fc3d3cae00b671dce9709433571c1ea2a174805 Mon Sep 17 00:00:00 2001
From: Dmitri Naumov <github@naumov.de>
Date: Wed, 11 Jul 2018 00:37:11 +0200
Subject: [PATCH] NWMP; Rename applyToPropertyVectors().

---
 .../PartitionMesh/NodeWiseMeshPartitioner.cpp             | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Applications/Utils/ModelPreparation/PartitionMesh/NodeWiseMeshPartitioner.cpp b/Applications/Utils/ModelPreparation/PartitionMesh/NodeWiseMeshPartitioner.cpp
index 5bacc9782fb..acfefc1c84d 100644
--- a/Applications/Utils/ModelPreparation/PartitionMesh/NodeWiseMeshPartitioner.cpp
+++ b/Applications/Utils/ModelPreparation/PartitionMesh/NodeWiseMeshPartitioner.cpp
@@ -332,8 +332,8 @@ bool copyPropertyVector(MeshLib::Properties const& original_properties,
 /// At least one of the functions must return the 'true' value, but at most one
 /// is executed.
 template <typename Function>
-void applyPropertyVectors(std::vector<std::string> const& property_names,
-                          Function f)
+void applyToPropertyVectors(std::vector<std::string> const& property_names,
+                            Function f)
 {
     for (auto const& name : property_names)
     {
@@ -373,7 +373,7 @@ void NodeWiseMeshPartitioner::processProperties(
     // 3 copy the values according to the partition info
     auto const& original_properties(_mesh->getProperties());
 
-    applyPropertyVectors(
+    applyToPropertyVectors(
         original_properties.getPropertyVectorNames(mesh_item_type),
         [&](auto type, std::string const& name) {
             return copyPropertyVector<decltype(type)>(
@@ -486,7 +486,7 @@ void writePropertiesBinary(const std::string& file_name_base,
     std::size_t const number_of_properties(property_names.size());
     BaseLib::writeValueBinary(out, number_of_properties);
 
-    applyPropertyVectors(property_names,
+    applyToPropertyVectors(property_names,
                          [&](auto type, std::string const& name) {
                              return writePropertyVectorBinary<decltype(type)>(
                                  partitioned_properties, name, out_val, out);
-- 
GitLab