]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove compiler warning.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 7 Apr 1998 16:57:26 +0000 (16:57 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 7 Apr 1998 16:57:26 +0000 (16:57 +0000)
git-svn-id: https://svn.dealii.org/trunk@156 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/Attic/examples/dof/dof_test.cc
tests/big-tests/dof/dof_test.cc

index c2f82c0c4a942542399fc9892447e624d05c5554..c49075b912e0b01f196ff83d4275166f1058cc4f 100644 (file)
@@ -180,8 +180,8 @@ void TestCases<dim>::run (ParameterHandler &prm) {
       {
                                         // set the boundary function
        Boundary<dim> *boundary = (test_case==2 ?
-                                  new Ball<dim>() :
-                                  new CurvedLine<dim>());
+                                  static_cast<Boundary<dim>*>(new Ball<dim>()) :
+                                  static_cast<Boundary<dim>*>(new CurvedLine<dim>()));
        tria->set_boundary (boundary);
        
                                         // refine once
index c2f82c0c4a942542399fc9892447e624d05c5554..c49075b912e0b01f196ff83d4275166f1058cc4f 100644 (file)
@@ -180,8 +180,8 @@ void TestCases<dim>::run (ParameterHandler &prm) {
       {
                                         // set the boundary function
        Boundary<dim> *boundary = (test_case==2 ?
-                                  new Ball<dim>() :
-                                  new CurvedLine<dim>());
+                                  static_cast<Boundary<dim>*>(new Ball<dim>()) :
+                                  static_cast<Boundary<dim>*>(new CurvedLine<dim>()));
        tria->set_boundary (boundary);
        
                                         // refine once

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.