From: Matthias Maier Date: Thu, 14 Jun 2018 01:04:06 +0000 (-0500) Subject: fe/fe_nothing.cc: put a string literal where it belongs X-Git-Tag: v9.1.0-rc1~1042^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F6758%2Fhead;p=dealii.git fe/fe_nothing.cc: put a string literal where it belongs --- 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; }