From: Daniel Arndt Date: Fri, 6 Apr 2018 13:13:51 +0000 (+0200) Subject: Check the result of a dynamic_cast. X-Git-Tag: v9.0.0-rc1~218^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F6181%2Fhead;p=dealii.git Check the result of a dynamic_cast. --- diff --git a/source/fe/mapping_q.cc b/source/fe/mapping_q.cc index 9fd1fbc34a..6f3f183599 100644 --- a/source/fe/mapping_q.cc +++ b/source/fe/mapping_q.cc @@ -374,10 +374,9 @@ transform (const ArrayView > &input, const ArrayView > &output) const { AssertDimension (input.size(), output.size()); - Assert ((dynamic_cast::InternalData *> (&mapping_data) - != nullptr), - ExcInternalError()); + const InternalData *data = dynamic_cast(&mapping_data); + Assert (data != nullptr, ExcInternalError()); // check whether we should in fact work on the Q1 portion of it if (data->use_mapping_q1_on_current_cell)