From: Daniel Arndt Date: Tue, 4 Jul 2023 02:55:50 +0000 (-0400) Subject: Fix some more clang-tidy findings X-Git-Tag: relicensing~725^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c81bb21bd7aa725c07c25d5325945808542161bd;p=dealii.git Fix some more clang-tidy findings --- diff --git a/examples/step-17/step-17.cc b/examples/step-17/step-17.cc index 6089836ea6..eaeb105bb6 100644 --- a/examples/step-17/step-17.cc +++ b/examples/step-17/step-17.cc @@ -361,7 +361,7 @@ namespace Step17 // matrix-vector multiplications: const std::vector locally_owned_dofs_per_proc = DoFTools::locally_owned_dofs_per_subdomain(dof_handler); - const IndexSet locally_owned_dofs = + const IndexSet &locally_owned_dofs = locally_owned_dofs_per_proc[this_mpi_process]; system_matrix.reinit(locally_owned_dofs, diff --git a/examples/step-70/step-70.cc b/examples/step-70/step-70.cc index 011964a3e1..4b94baf3d5 100644 --- a/examples/step-70/step-70.cc +++ b/examples/step-70/step-70.cc @@ -1749,7 +1749,7 @@ namespace Step70 static std::map>> times_and_names; if (times_and_names.find(fprefix) != times_and_names.end()) - times_and_names[fprefix].push_back(std::make_pair(time, filename)); + times_and_names[fprefix].emplace_back(time, filename); else times_and_names[fprefix] = {std::make_pair(time, filename)}; std::ofstream ofile(par.output_directory + "/" + fprefix + ".pvd");