]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix clang-tidy complains 10950/head
authorDaniel Arndt <arndtd@ornl.gov>
Tue, 22 Sep 2020 18:33:09 +0000 (14:33 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Tue, 22 Sep 2020 18:33:09 +0000 (14:33 -0400)
include/deal.II/multigrid/mg_transfer_global_coarsening.templates.h

index 3814c31af69f4d74b647266b3bee16474be72061..1a34963d8721427a65933aca363801a53d634d7a 100644 (file)
@@ -1289,7 +1289,7 @@ namespace internal
         });
       }
 
-      for (const auto fe_index_pair : fe_index_pairs)
+      for (const auto &fe_index_pair : fe_index_pairs)
         {
           transfer.schemes[fe_index_pair.second].dofs_per_cell_coarse =
             dof_handler_coarse.get_fe(fe_index_pair.first.first).dofs_per_cell;
@@ -1340,7 +1340,7 @@ namespace internal
         std::vector<std::vector<types::global_dof_index>>
           local_dof_indices_fine(fe_index_pairs.size());
 
-        for (const auto fe_index_pair : fe_index_pairs)
+        for (const auto &fe_index_pair : fe_index_pairs)
           {
             local_dof_indices_coarse[fe_index_pair.second].resize(
               transfer.schemes[fe_index_pair.second].dofs_per_cell_coarse);

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.