From: Daniel Arndt Date: Mon, 2 Jan 2023 11:04:32 +0000 (+0100) Subject: Fix warnings X-Git-Tag: v9.5.0-rc1~689^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ef760bbefcc48c8985a77c6f7a4f337d9f2920b;p=dealii.git Fix warnings --- 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);