From: Daniel Arndt Date: Thu, 13 Jul 2023 11:48:01 +0000 (-0400) Subject: Address review suggestion X-Git-Tag: relicensing~683^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f08799783759060fab31c454e9e004a88209bf3a;p=dealii.git Address review suggestion Co-authored-by: Wolfgang Bangerth --- diff --git a/source/arborx/access_traits.cc b/source/arborx/access_traits.cc index ac2bbf36f7..a9ea5b720b 100644 --- a/source/arborx/access_traits.cc +++ b/source/arborx/access_traits.cc @@ -29,11 +29,11 @@ namespace ArborXWrappers { static_assert(dim >= 1 && dim <= 3); if (dim == 1) - return {float(p[0]), 0.f, 0.f}; + return Point<3, float>(p[0], 0.f, 0.f); else if (dim == 2) - return {float(p[0]), float(p[1]), 0.f}; + return Point<3, float>(p[0], p[1], 0.f); else - return {float(p[0]), float(p[1]), float(p[2])}; + return Point<3, float>(p[0], p[1], p[2]); } } // namespace