From 4baa582596141dcc4392ca8bec5a9869d4020492 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 31 Aug 2020 17:34:25 -0600 Subject: [PATCH] Simplify a piece of code. --- source/base/bounding_box.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source/base/bounding_box.cc b/source/base/bounding_box.cc index 4ad11f15eb..06aae4e4b7 100644 --- a/source/base/bounding_box.cc +++ b/source/base/bounding_box.cc @@ -70,12 +70,12 @@ BoundingBox::get_neighbor_type( } else { - std::array, 2> bbox1; - bbox1[0] = this->get_boundary_points().first; - bbox1[1] = this->get_boundary_points().second; - std::array, 2> bbox2; - bbox2[0] = other_bbox.get_boundary_points().first; - bbox2[1] = other_bbox.get_boundary_points().second; + const std::array, 2> bbox1 = { + {this->get_boundary_points().first, + this->get_boundary_points().second}}; + const std::array, 2> bbox2 = { + {other_bbox.get_boundary_points().first, + other_bbox.get_boundary_points().second}}; // Step 1: testing if the boxes are close enough to intersect for (unsigned int d = 0; d < spacedim; ++d) -- 2.39.5