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=6d92a9d9d9f1d1b0dda9e340d72cde25905c4a17;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; }