From 773098cd8b280481631c71c58ca029800db63cda Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Thu, 7 Jun 2018 17:50:11 +0200 Subject: [PATCH] More clang-tidy complains --- include/deal.II/lac/affine_constraints.h | 4 ++-- source/grid/grid_tools_dof_handlers.cc | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) 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; -- 2.39.5