From da3db93cfed9242cca98e41d8379269a0b165eef Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Wed, 13 Jun 2018 20:04:06 -0500 Subject: [PATCH] fe/fe_nothing.cc: put a string literal where it belongs --- source/fe/fe_nothing.cc | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/source/fe/fe_nothing.cc b/source/fe/fe_nothing.cc index ceaa079788..ba1df8393f 100644 --- a/source/fe/fe_nothing.cc +++ b/source/fe/fe_nothing.cc @@ -20,18 +20,6 @@ DEAL_II_NAMESPACE_OPEN -namespace internal -{ - namespace FE_Nothing - { - namespace - { - const char *zero_dof_message = "This element has no shape functions."; - } - } // namespace FE_Nothing -} // namespace internal - - template FE_Nothing::FE_Nothing(const unsigned int n_components, @@ -96,8 +84,7 @@ double FE_Nothing::shape_value(const unsigned int /*i*/, const Point & /*p*/) const { - (void)internal::FE_Nothing::zero_dof_message; - Assert(false, ExcMessage(internal::FE_Nothing::zero_dof_message)); + Assert(false, ExcMessage("This element has no shape functions.")); return 0; } -- 2.39.5