From: Wolfgang Bangerth Date: Thu, 14 Jan 2021 00:19:07 +0000 (-0700) Subject: Simply a few return statements a bit. X-Git-Tag: v9.3.0-rc1~642^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1024f1f3b8e9e0cfba723410a05bdf3f592cb0b4;p=dealii.git Simply a few return statements a bit. --- diff --git a/include/deal.II/base/geometry_info.h b/include/deal.II/base/geometry_info.h index 742db3c826..4bb2e017b2 100644 --- a/include/deal.II/base/geometry_info.h +++ b/include/deal.II/base/geometry_info.h @@ -2936,7 +2936,7 @@ GeometryInfo::unit_cell_vertex(const unsigned int) { Assert(false, ExcNotImplemented()); - return Point(); + return {}; } @@ -3122,7 +3122,7 @@ GeometryInfo::cell_to_child_coordinates( { Assert(false, ExcNotImplemented()); - return Point(); + return {}; } @@ -3258,7 +3258,7 @@ GeometryInfo::child_to_cell_coordinates( const RefinementCase /*refine_case*/) { Assert(false, ExcNotImplemented()); - return Point(); + return {}; } diff --git a/source/fe/mapping_fe.cc b/source/fe/mapping_fe.cc index c004084ca2..3f7148dbca 100644 --- a/source/fe/mapping_fe.cc +++ b/source/fe/mapping_fe.cc @@ -914,7 +914,7 @@ MappingFE::transform_real_to_unit_cell( (void)cell; (void)p; - return Point(); + return {}; } diff --git a/source/fe/mapping_fe_field.cc b/source/fe/mapping_fe_field.cc index 31470830ed..5e3bc95a5a 100644 --- a/source/fe/mapping_fe_field.cc +++ b/source/fe/mapping_fe_field.cc @@ -2227,7 +2227,7 @@ failure: (typename Mapping::ExcTransformationFailed())); // ...the compiler wants us to return something, though we can // of course never get here... - return Point(); + return {}; } diff --git a/source/fe/mapping_manifold.cc b/source/fe/mapping_manifold.cc index fcf99b00e9..95fe8a9419 100644 --- a/source/fe/mapping_manifold.cc +++ b/source/fe/mapping_manifold.cc @@ -163,7 +163,7 @@ MappingManifold::transform_real_to_unit_cell( const Point &) const { Assert(false, ExcNotImplemented()); - return Point(); + return {}; } diff --git a/source/fe/mapping_q_generic.cc b/source/fe/mapping_q_generic.cc index c481bad760..4559fb6c9c 100644 --- a/source/fe/mapping_q_generic.cc +++ b/source/fe/mapping_q_generic.cc @@ -465,7 +465,7 @@ MappingQGeneric::transform_real_to_unit_cell_internal( { // default implementation (should never be called) Assert(false, ExcInternalError()); - return Point(); + return {}; } diff --git a/source/grid/manifold.cc b/source/grid/manifold.cc index b834e3f686..2fe79620a4 100644 --- a/source/grid/manifold.cc +++ b/source/grid/manifold.cc @@ -40,7 +40,7 @@ Manifold::project_to_manifold( const Point &) const { Assert(false, ExcPureFunctionCalled()); - return Point(); + return {}; } @@ -354,7 +354,7 @@ Manifold::get_new_point_on_face( return get_new_point_on_quad(face); } - return Point(); + return {}; } @@ -374,7 +374,7 @@ Manifold::get_new_point_on_cell( return get_new_point_on_hex(cell); } - return Point(); + return {}; } @@ -451,7 +451,7 @@ Manifold::get_new_point_on_hex( const typename Triangulation::hex_iterator & /*hex*/) const { Assert(false, ExcImpossibleInDim(dim)); - return Point(); + return {}; } diff --git a/source/grid/manifold_lib.cc b/source/grid/manifold_lib.cc index 8dfc10ad10..37d8606af5 100644 --- a/source/grid/manifold_lib.cc +++ b/source/grid/manifold_lib.cc @@ -855,7 +855,7 @@ namespace const Point & /*candidate_point*/) { Assert(false, ExcNotImplemented()); - return Point(); + return {}; } template <> @@ -990,7 +990,7 @@ SphericalManifold::get_new_point( const Point &) const { Assert(false, ExcNotImplemented()); - return Point(); + return {}; } @@ -1260,7 +1260,7 @@ Point EllipticalManifold::push_forward(const Point &) const { Assert(false, ExcNotImplemented()); - return Point(); + return {}; } @@ -1288,7 +1288,7 @@ Point EllipticalManifold::pull_back(const Point &) const { Assert(false, ExcNotImplemented()); - return Point(); + return {}; } @@ -2374,7 +2374,7 @@ TransfiniteInterpolationManifold::compute_chart_points( Assert(false, ExcInternalError()); } - return Point(); + return {}; }; // Function that can guess the location of a chart point by assuming that diff --git a/source/grid/tria_accessor.cc b/source/grid/tria_accessor.cc index 6c9aceaaac..d0f34491cd 100644 --- a/source/grid/tria_accessor.cc +++ b/source/grid/tria_accessor.cc @@ -1245,7 +1245,7 @@ namespace // this function catches all the cases not // explicitly handled above Assert(false, ExcNotImplemented()); - return Point(); + return {}; } diff --git a/source/opencascade/utilities.cc b/source/opencascade/utilities.cc index 1011d14ac6..b9debf9d30 100644 --- a/source/opencascade/utilities.cc +++ b/source/opencascade/utilities.cc @@ -841,7 +841,7 @@ namespace OpenCASCADE default: Assert(false, ExcUnsupportedShape()); } - return Point(); + return {}; } std::tuple, Tensor<1, 3>, double, double>