From: Daniel Arndt Date: Sat, 3 Aug 2024 16:43:49 +0000 (-0400) Subject: Remove redundant type qualifiers in dynamic_casts X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F17431%2Fhead;p=dealii.git Remove redundant type qualifiers in dynamic_casts --- diff --git a/source/lac/trilinos_solver.cc b/source/lac/trilinos_solver.cc index 1e65888912..522fb10fd3 100644 --- a/source/lac/trilinos_solver.cc +++ b/source/lac/trilinos_solver.cc @@ -469,7 +469,7 @@ namespace TrilinosWrappers if (!status_test) { if (const ReductionControl *const reduction_control = - dynamic_cast(&solver_control)) + dynamic_cast(&solver_control)) { status_test = std::make_unique( reduction_control->max_steps(), @@ -522,10 +522,10 @@ namespace TrilinosWrappers // compute it ourself. if (const internal::TrilinosReductionControl *const reduction_control_status = - dynamic_cast( + dynamic_cast( status_test.get())) { - Assert(dynamic_cast(&solver_control), + Assert(dynamic_cast(&solver_control), ExcInternalError()); // Check to see if solver converged in one step