From fd3dd3841ab1b8b000601be725425ae59e2cafb1 Mon Sep 17 00:00:00 2001
From: Wolfgang Bangerth <bangerth@colostate.edu>
Date: Wed, 19 Jul 2017 12:06:01 -0600
Subject: [PATCH] Remove an unnecessary cast.

---
 tests/distributed_grids/solution_transfer_02.cc | 2 +-
 tests/distributed_grids/solution_transfer_03.cc | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/distributed_grids/solution_transfer_02.cc b/tests/distributed_grids/solution_transfer_02.cc
index 3c84946e9b..b0270a5b44 100644
--- a/tests/distributed_grids/solution_transfer_02.cc
+++ b/tests/distributed_grids/solution_transfer_02.cc
@@ -84,7 +84,7 @@ void test(std::ostream & /*out*/)
 
   Vector<double> solution(dofh.n_dofs());
   VectorTools::interpolate (mapping,
-                            * static_cast<dealii::DoFHandler<dim>* >(&dofh),
+                            dofh,
                             func,
                             solution);
 
diff --git a/tests/distributed_grids/solution_transfer_03.cc b/tests/distributed_grids/solution_transfer_03.cc
index 2b3c41149b..7198897f23 100644
--- a/tests/distributed_grids/solution_transfer_03.cc
+++ b/tests/distributed_grids/solution_transfer_03.cc
@@ -104,7 +104,7 @@ void test(std::ostream & /*out*/)
 
       Vector<double> solution(dofh.n_dofs());
       VectorTools::interpolate (mapping,
-                                * static_cast<dealii::DoFHandler<dim>* >(&dofh),
+                                dofh,
                                 func,
                                 solution);
 
-- 
2.39.5