From: Timo Heister Date: Wed, 31 Dec 2014 13:50:12 +0000 (-0500) Subject: simplify cast X-Git-Tag: v8.3.0-rc1~575^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F394%2Fhead;p=dealii.git simplify cast --- diff --git a/source/distributed/solution_transfer.cc b/source/distributed/solution_transfer.cc index 3455251bf1..4a4e380a80 100644 --- a/source/distributed/solution_transfer.cc +++ b/source/distributed/solution_transfer.cc @@ -48,11 +48,9 @@ namespace parallel : dof_handler(&dof, typeid(*this).name()) { - parallel::distributed::Triangulation *tria - = (dynamic_cast*> - (const_cast*> - (&dof_handler->get_tria()))); - Assert (tria != 0, ExcMessage("parallel::distributed::SolutionTransfer requires a parallel::distributed::Triangulation object.")); + Assert (dynamic_cast*> + (&dof_handler->get_tria()) != 0, + ExcMessage("parallel::distributed::SolutionTransfer requires a parallel::distributed::Triangulation object.")); }