From: Wolfgang Bangerth Date: Mon, 31 Aug 2020 23:34:25 +0000 (-0600) Subject: Simplify a piece of code. X-Git-Tag: v9.3.0-rc1~1153^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F10866%2Fhead;p=dealii.git Simplify a piece of code. --- 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)