From 6d92a9d9d9f1d1b0dda9e340d72cde25905c4a17 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Mon, 13 May 2019 16:23:10 -0500 Subject: [PATCH] Cppcheck: Fix general_data_storage.h --- .../deal.II/algorithms/general_data_storage.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/include/deal.II/algorithms/general_data_storage.h b/include/deal.II/algorithms/general_data_storage.h index 556ec7d50e..1c68fb38bb 100644 --- a/include/deal.II/algorithms/general_data_storage.h +++ b/include/deal.II/algorithms/general_data_storage.h @@ -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; } -- 2.39.5