From: Daniel Arndt Date: Thu, 7 Jun 2018 15:50:11 +0000 (+0200) Subject: More clang-tidy complains X-Git-Tag: v9.1.0-rc1~1060^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=773098cd8b280481631c71c58ca029800db63cda;p=dealii.git More clang-tidy complains --- diff --git a/include/deal.II/lac/affine_constraints.h b/include/deal.II/lac/affine_constraints.h index 463bc4abd8..c6a3a3e425 100644 --- a/include/deal.II/lac/affine_constraints.h +++ b/include/deal.II/lac/affine_constraints.h @@ -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. diff --git a/source/grid/grid_tools_dof_handlers.cc b/source/grid/grid_tools_dof_handlers.cc index aff3ec0568..60bab1cffd 100644 --- a/source/grid/grid_tools_dof_handlers.cc +++ b/source/grid/grid_tools_dof_handlers.cc @@ -650,7 +650,7 @@ namespace GridTools std::vector::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;