]> https://gitweb.dealii.org/ - dealii.git/commitdiff
More clang-tidy complains 6729/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Thu, 7 Jun 2018 15:50:11 +0000 (17:50 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Thu, 7 Jun 2018 15:50:11 +0000 (17:50 +0200)
include/deal.II/lac/affine_constraints.h
source/grid/grid_tools_dof_handlers.cc

index 463bc4abd821882d940fd159d3b1d3b39b31536d..c6a3a3e4252c74f24f0ff2cd6d7aa61092b3c25d 100644 (file)
@@ -211,7 +211,7 @@ public:
   /**
    * Move constructor
    */
-  AffineConstraints(AffineConstraints &&affine_constraints) = default;
+  AffineConstraints(AffineConstraints &&affine_constraints) = default; // NOLINT
 
   /**
    * Copy operator. Like for many other large objects, this operator
@@ -229,7 +229,7 @@ public:
    * Move assignment operator
    */
   AffineConstraints &
-  operator=(AffineConstraints &&affine_constraints) = default;
+  operator=(AffineConstraints &&affine_constraints) = default; // NOLINT
 
   /**
    * Copy the given object to the current one.
index aff3ec0568bf6be4cf5306cf9a111684b4921a93..60bab1cffd7e3c8087ca91e393d936e82d3aa20a 100644 (file)
@@ -650,7 +650,7 @@ namespace GridTools
             std::vector<typename MeshType<dim, spacedim>::active_cell_iterator>
               cells = find_cells_adjacent_to_vertex(
                 mesh, my_cell->vertex_index(local_vertex_index));
-            for (auto cell : cells)
+            for (const auto &cell : cells)
               if (cell != my_cell)
                 cells_to_add.push_back(cell);
           }
@@ -689,10 +689,10 @@ namespace GridTools
                 auto tentative_cells = find_cells_adjacent_to_vertex(
                   mesh,
                   my_cell->vertex_index(first_vertex + (d << free_direction)));
-                for (auto cell : tentative_cells)
+                for (const auto &cell : tentative_cells)
                   {
                     bool cell_not_yet_present = true;
-                    for (auto other_cell : cells_to_add)
+                    for (const auto &other_cell : cells_to_add)
                       if (cell == other_cell)
                         {
                           cell_not_yet_present = false;

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.