From 0ef760bbefcc48c8985a77c6f7a4f337d9f2920b Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Mon, 2 Jan 2023 12:04:32 +0100 Subject: [PATCH] Fix warnings --- tests/simplex/cell_bounding_boxes_2d.cc | 2 +- tests/simplex/cell_bounding_boxes_3d.cc | 2 +- tests/simplex/step-68.cc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/simplex/cell_bounding_boxes_2d.cc b/tests/simplex/cell_bounding_boxes_2d.cc index 182d5dd47d..2f6d28d110 100644 --- a/tests/simplex/cell_bounding_boxes_2d.cc +++ b/tests/simplex/cell_bounding_boxes_2d.cc @@ -40,7 +40,7 @@ template void compute_bounding_boxes(Triangulation &tria) { - for (const auto cell : tria.active_cell_iterators()) + for (const auto &cell : tria.active_cell_iterators()) { const auto cell_bb = cell->bounding_box(); deallog << "Center : " << cell_bb.center() diff --git a/tests/simplex/cell_bounding_boxes_3d.cc b/tests/simplex/cell_bounding_boxes_3d.cc index 227fd9687e..1bd353238e 100644 --- a/tests/simplex/cell_bounding_boxes_3d.cc +++ b/tests/simplex/cell_bounding_boxes_3d.cc @@ -40,7 +40,7 @@ template void compute_bounding_boxes(Triangulation &tria) { - for (const auto cell : tria.active_cell_iterators()) + for (const auto &cell : tria.active_cell_iterators()) { const auto cell_bb = cell->bounding_box(); deallog << "Center : " << cell_bb.center() diff --git a/tests/simplex/step-68.cc b/tests/simplex/step-68.cc index 32575a5804..c52cf9161c 100644 --- a/tests/simplex/step-68.cc +++ b/tests/simplex/step-68.cc @@ -253,7 +253,7 @@ namespace Step68 std::vector> all_boxes; all_boxes.reserve(background_triangulation.n_locally_owned_active_cells()); - for (const auto cell : background_triangulation.active_cell_iterators()) + for (const auto &cell : background_triangulation.active_cell_iterators()) if (cell->is_locally_owned()) all_boxes.emplace_back(cell->bounding_box()); const auto tree = pack_rtree(all_boxes); -- 2.39.5