From 2fa6a24dbea96b7b5b9207b32e5070508e0d473b Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Fri, 6 Apr 2018 15:13:51 +0200 Subject: [PATCH] Check the result of a dynamic_cast. --- source/fe/mapping_q.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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) -- 2.39.5