]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove redundant type qualifiers in dynamic_casts 17431/head
authorDaniel Arndt <arndtd@ornl.gov>
Sat, 3 Aug 2024 16:43:49 +0000 (12:43 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Sat, 3 Aug 2024 16:44:00 +0000 (12:44 -0400)
source/lac/trilinos_solver.cc

index 1e65888912c05d3c14ff2915e4a843d246bd158e..522fb10fd3c8f5829cc146e7e3730a9b26c6ee5f 100644 (file)
@@ -469,7 +469,7 @@ namespace TrilinosWrappers
     if (!status_test)
       {
         if (const ReductionControl *const reduction_control =
-              dynamic_cast<const ReductionControl *const>(&solver_control))
+              dynamic_cast<const ReductionControl *>(&solver_control))
           {
             status_test = std::make_unique<internal::TrilinosReductionControl>(
               reduction_control->max_steps(),
@@ -522,10 +522,10 @@ namespace TrilinosWrappers
     // compute it ourself.
     if (const internal::TrilinosReductionControl
           *const reduction_control_status =
-            dynamic_cast<const internal::TrilinosReductionControl *const>(
+            dynamic_cast<const internal::TrilinosReductionControl *>(
               status_test.get()))
       {
-        Assert(dynamic_cast<const ReductionControl *const>(&solver_control),
+        Assert(dynamic_cast<const ReductionControl *>(&solver_control),
                ExcInternalError());
 
         // Check to see if solver converged in one step

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.