]> https://gitweb.dealii.org/ - dealii.git/commitdiff
fe/fe_nothing.cc: put a string literal where it belongs 6758/head
authorMatthias Maier <tamiko@43-1.org>
Thu, 14 Jun 2018 01:04:06 +0000 (20:04 -0500)
committerMatthias Maier <tamiko@43-1.org>
Thu, 14 Jun 2018 13:09:26 +0000 (08:09 -0500)
source/fe/fe_nothing.cc

index ceaa07978810fbed5b72e8d95a9bbc84eb9513c1..ba1df8393f3ca5f51cc7cf53e21f598d1fb85a45 100644 (file)
 
 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 <int dim, int spacedim>
 FE_Nothing<dim, spacedim>::FE_Nothing(const unsigned int n_components,
@@ -96,8 +84,7 @@ double
 FE_Nothing<dim, spacedim>::shape_value(const unsigned int /*i*/,
                                        const Point<dim> & /*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;
 }
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.