From 144df00ae6de66d4a2a6176e8ad47318ba2ef8a5 Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Thu, 29 Oct 2020 12:05:14 +0100 Subject: [PATCH] Remove yet another capture by reference in IndexSet --- .../base/mpi_noncontiguous_partitioner.templates.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/deal.II/base/mpi_noncontiguous_partitioner.templates.h b/include/deal.II/base/mpi_noncontiguous_partitioner.templates.h index 588baa5bed..0b0426e526 100644 --- a/include/deal.II/base/mpi_noncontiguous_partitioner.templates.h +++ b/include/deal.II/base/mpi_noncontiguous_partitioner.templates.h @@ -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 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 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); -- 2.39.5