From: Matthias Maier Date: Mon, 13 May 2019 21:23:10 +0000 (-0500) Subject: Cppcheck: Fix general_data_storage.h X-Git-Tag: v9.1.0-rc1~13^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F8140%2Fhead;p=dealii.git Cppcheck: Fix general_data_storage.h --- 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; }