]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove a typedef thats unused when compiling in release mode. 5841/head
authorJean-Paul Pelteret <jppelteret@gmail.com>
Thu, 1 Feb 2018 18:03:14 +0000 (19:03 +0100)
committerJean-Paul Pelteret <jppelteret@gmail.com>
Thu, 1 Feb 2018 18:10:12 +0000 (19:10 +0100)
Fixes 5840.

source/hp/dof_handler.cc

index 168570ac9532a7e197d44c41a7904ef909f07fa5..01c0c7d428baca9b658ff2f30c64c8c3666f8464 100644 (file)
@@ -599,12 +599,10 @@ namespace internal
         {
           const unsigned int dim = 1;
 
-          typedef DoFHandler<dim,spacedim> BaseClass;
-
           Assert (dof_handler.finite_elements != nullptr,
-                  typename BaseClass::ExcNoFESelected());
+                  (typename DoFHandler<dim,spacedim>::ExcNoFESelected()));
           Assert (dof_handler.finite_elements->size() > 0,
-                  typename BaseClass::ExcNoFESelected());
+                  (typename DoFHandler<dim,spacedim>::ExcNoFESelected()));
           Assert (dof_handler.tria->n_levels() > 0,
                   ExcMessage("The current Triangulation must not be empty."));
           Assert (dof_handler.tria->n_levels() == dof_handler.levels.size (),
@@ -625,12 +623,10 @@ namespace internal
         {
           const unsigned int dim = 2;
 
-          typedef DoFHandler<dim,spacedim> BaseClass;
-
           Assert (dof_handler.finite_elements != nullptr,
-                  typename BaseClass::ExcNoFESelected());
+                  (typename DoFHandler<dim,spacedim>::ExcNoFESelected()));
           Assert (dof_handler.finite_elements->size() > 0,
-                  typename BaseClass::ExcNoFESelected());
+                  (typename DoFHandler<dim,spacedim>::ExcNoFESelected()));
           Assert (dof_handler.tria->n_levels() > 0,
                   ExcMessage("The current Triangulation must not be empty."));
           Assert (dof_handler.tria->n_levels() == dof_handler.levels.size (),
@@ -655,12 +651,10 @@ namespace internal
         {
           const unsigned int dim = 3;
 
-          typedef DoFHandler<dim,spacedim> BaseClass;
-
           Assert (dof_handler.finite_elements != nullptr,
-                  typename BaseClass::ExcNoFESelected());
+                  (typename DoFHandler<dim,spacedim>::ExcNoFESelected()));
           Assert (dof_handler.finite_elements->size() > 0,
-                  typename BaseClass::ExcNoFESelected());
+                  (typename DoFHandler<dim,spacedim>::ExcNoFESelected()));
           Assert (dof_handler.tria->n_levels() > 0,
                   ExcMessage("The current Triangulation must not be empty."));
           Assert (dof_handler.tria->n_levels() == dof_handler.levels.size (),

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.