From 1024f1f3b8e9e0cfba723410a05bdf3f592cb0b4 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 13 Jan 2021 17:19:07 -0700 Subject: [PATCH] Simply a few return statements a bit. --- include/deal.II/base/geometry_info.h | 6 +++--- source/fe/mapping_fe.cc | 2 +- source/fe/mapping_fe_field.cc | 2 +- source/fe/mapping_manifold.cc | 2 +- source/fe/mapping_q_generic.cc | 2 +- source/grid/manifold.cc | 8 ++++---- source/grid/manifold_lib.cc | 10 +++++----- source/grid/tria_accessor.cc | 2 +- source/opencascade/utilities.cc | 2 +- 9 files changed, 18 insertions(+), 18 deletions(-) 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> -- 2.39.5