From: Daniel Arndt Date: Sat, 21 Oct 2017 14:15:45 +0000 (+0200) Subject: Prefer using emplace_back X-Git-Tag: v9.0.0-rc1~902^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=696786c7a085d03b672995f22ef8a6ebdee5e8de;p=dealii.git Prefer using emplace_back --- diff --git a/source/base/partitioner.cc b/source/base/partitioner.cc index 73ca8f637c..f95658fd2c 100644 --- a/source/base/partitioner.cc +++ b/source/base/partitioner.cc @@ -373,8 +373,8 @@ namespace Utilities if (larger_ghost_index_set.size() == 0) { ghost_indices_subset_chunks_by_rank_data.clear(); - ghost_indices_subset_data.push_back(std::make_pair(local_size(), - local_size()+n_ghost_indices())); + ghost_indices_subset_data.emplace_back(local_size(), + local_size()+n_ghost_indices()); n_ghost_indices_in_larger_set = n_ghost_indices_data; } else diff --git a/source/multigrid/mg_transfer_internal.cc b/source/multigrid/mg_transfer_internal.cc index 15a907f323..45f66cc8fa 100644 --- a/source/multigrid/mg_transfer_internal.cc +++ b/source/multigrid/mg_transfer_internal.cc @@ -246,9 +246,8 @@ namespace internal for (unsigned int i=0; i