]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Simplify two exceptions. 4566/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Sun, 2 Jul 2017 17:04:16 +0000 (11:04 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Sun, 2 Jul 2017 17:04:16 +0000 (11:04 -0600)
include/deal.II/dofs/dof_handler.h
include/deal.II/hp/dof_handler.h

index ae3fe3df737f13fb690e1c3ead1531a28f969bc3..ef739291bc691de2c7592c3f3c4fda28142d864b 100644 (file)
@@ -1341,10 +1341,10 @@ void DoFHandler<dim,spacedim>::load (Archive &ar,
                ExcMessage ("The finite element associated with this DoFHandler does not match "
                            "the one that was associated with the DoFHandler previously stored."));
   AssertThrow (policy_name == internal::policy_to_string(*policy),
-               ExcMessage (std::string ("The policy currently associated with this DoFHandler (")
+               ExcMessage ("The policy currently associated with this DoFHandler ("
                            + internal::policy_to_string(*policy)
-                           +std::string(") does not match the one that was associated with the "
-                                        "DoFHandler previously stored (")
+                           + ") does not match the one that was associated with the "
+                           "DoFHandler previously stored ("
                            + policy_name
                            + ")."));
 }
index 1e72595ceee7c98ad51b14d53836a56448cc2280..915d8d9f11a883f2a08bbe7f8890b4470a1889ff 100644 (file)
@@ -990,10 +990,10 @@ namespace hp
                  ExcMessage ("The object being loaded into does not match the triangulation "
                              "that has been stored previously."));
     AssertThrow (policy_name == dealii::internal::policy_to_string(*policy),
-                 ExcMessage (std::string ("The policy currently associated with this DoFHandler (")
+                 ExcMessage ("The policy currently associated with this DoFHandler ("
                              + dealii::internal::policy_to_string(*policy)
-                             +std::string(") does not match the one that was associated with the "
-                                          "DoFHandler previously stored (")
+                             + ") does not match the one that was associated with the "
+                             "DoFHandler previously stored ("
                              + policy_name
                              + ")."));
   }

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.