]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove yet another capture by reference in IndexSet
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Thu, 29 Oct 2020 11:05:14 +0000 (12:05 +0100)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Thu, 29 Oct 2020 11:05:14 +0000 (12:05 +0100)
include/deal.II/base/mpi_noncontiguous_partitioner.templates.h

index 588baa5bedefb0090ef95cf2456cc570f3d99a84..0b0426e526c8edde47272c1f3f4072ed325f6c74 100644 (file)
@@ -135,7 +135,7 @@ namespace Utilities
           {
             recv_ranks.push_back(target_with_indexset.first);
 
-            for (const auto &cell_index : target_with_indexset.second)
+            for (const auto cell_index : target_with_indexset.second)
               recv_indices.push_back(cell_index);
 
             recv_ptr.push_back(recv_indices.size());
@@ -150,7 +150,7 @@ namespace Utilities
           {
             send_ranks.push_back(target_with_indexset.first);
 
-            for (const auto &cell_index : target_with_indexset.second)
+            for (const auto cell_index : target_with_indexset.second)
               send_indices.push_back(indexset_has.index_within_set(cell_index));
 
             send_ptr.push_back(send_indices.size() + recv_ptr.back());
@@ -171,14 +171,14 @@ namespace Utilities
       std::vector<types::global_dof_index> indices_has_clean;
       indices_has_clean.reserve(indices_has.size());
 
-      for (const auto &i : indices_has)
+      for (const auto i : indices_has)
         if (i != numbers::invalid_dof_index)
           indices_has_clean.push_back(i);
 
       std::vector<types::global_dof_index> indices_want_clean;
       indices_want_clean.reserve(indices_want.size());
 
-      for (const auto &i : indices_want)
+      for (const auto i : indices_want)
         if (i != numbers::invalid_dof_index)
           indices_want_clean.push_back(i);
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.