]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Cppcheck: Fix general_data_storage.h 8140/head
authorMatthias Maier <tamiko@43-1.org>
Mon, 13 May 2019 21:23:10 +0000 (16:23 -0500)
committerMatthias Maier <tamiko@43-1.org>
Mon, 13 May 2019 22:25:28 +0000 (17:25 -0500)
include/deal.II/algorithms/general_data_storage.h

index 556ec7d50e9a094e633cebeae18e6d1d6c26f685..1c68fb38bb3f47957012c88627436886472e3c26 100644 (file)
@@ -414,10 +414,10 @@ GeneralDataStorage::get_object_with_name(const std::string &name)
     }
   else
     {
-      Assert(false,
-             ExcTypeMismatch(name,
-                             any_data[name].type().name(),
-                             typeid(Type).name()));
+      AssertThrow(false,
+                  ExcTypeMismatch(name,
+                                  any_data[name].type().name(),
+                                  typeid(Type).name()));
     }
 
   return *p;
@@ -444,10 +444,10 @@ GeneralDataStorage::get_object_with_name(const std::string &name) const
     }
   else
     {
-      Assert(false,
-             ExcTypeMismatch(name,
-                             it->second.type().name(),
-                             typeid(Type).name()));
+      AssertThrow(false,
+                  ExcTypeMismatch(name,
+                                  it->second.type().name(),
+                                  typeid(Type).name()));
       const Type *p = nullptr;
       return *p;
     }

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.