From c81bb21bd7aa725c07c25d5325945808542161bd Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Mon, 3 Jul 2023 22:55:50 -0400 Subject: [PATCH] Fix some more clang-tidy findings --- examples/step-17/step-17.cc | 2 +- examples/step-70/step-70.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"); -- 2.39.5