]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Replace C-style casts by C++-style casts.
authorhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 19 Feb 2001 11:53:41 +0000 (11:53 +0000)
committerhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 19 Feb 2001 11:53:41 +0000 (11:53 +0000)
git-svn-id: https://svn.dealii.org/trunk@3968 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/grid/grid_out.cc

index 9d9d1d85d56cc823087b1ecb3d48fa9ee3196a0e..1eda7a75a6717085ecf083e364cda3090daee15f 100644 (file)
@@ -242,29 +242,29 @@ void GridOut::write_gnuplot (const Triangulation<dim> &tria,
          case 1:
                out << cell->vertex(0)
                    << ' ' << cell->level()
-                   << ' ' << (unsigned int) cell->material_id() << std::endl
+                   << ' ' << static_cast<unsigned int>(cell->material_id()) << std::endl
                    << cell->vertex(1)
                    << ' ' << cell->level()
-                   << ' ' << (unsigned int) cell->material_id() << std::endl
+                   << ' ' << static_cast<unsigned int>(cell->material_id()) << std::endl
                    << std::endl;
                break;
 
          case 2:
                out << cell->vertex(0)
                    << ' ' << cell->level()
-                   << ' ' << (unsigned int) cell->material_id() << std::endl
+                   << ' ' << static_cast<unsigned int>(cell->material_id()) << std::endl
                    << cell->vertex(1)
                    << ' ' << cell->level()
-                   << ' ' << (unsigned int) cell->material_id() << std::endl
+                   << ' ' << static_cast<unsigned int>(cell->material_id()) << std::endl
                    << cell->vertex(2)
                    << ' ' << cell->level()
-                   << ' ' << (unsigned int) cell->material_id() << std::endl
+                   << ' ' << static_cast<unsigned int>(cell->material_id()) << std::endl
                    << cell->vertex(3)
                    << ' ' << cell->level()
-                   << ' ' << (unsigned int) cell->material_id() << std::endl
+                   << ' ' << static_cast<unsigned int>(cell->material_id()) << std::endl
                    << cell->vertex(0)
                    << ' ' << cell->level()
-                   << ' ' << (unsigned int) cell->material_id() << std::endl
+                   << ' ' << static_cast<unsigned int>(cell->material_id()) << std::endl
                    << std::endl  // double new line for gnuplot 3d plots
                    << std::endl;
                break;
@@ -273,66 +273,66 @@ void GridOut::write_gnuplot (const Triangulation<dim> &tria,
                                                 // front face
                out << cell->vertex(0)
                    << ' ' << cell->level()
-                   << ' ' << (unsigned int) cell->material_id() << std::endl
+                   << ' ' << static_cast<unsigned int>(cell->material_id()) << std::endl
                    << cell->vertex(1)
                    << ' ' << cell->level()
-                   << ' ' << (unsigned int) cell->material_id() << std::endl
+                   << ' ' << static_cast<unsigned int>(cell->material_id()) << std::endl
                    << cell->vertex(2)
                    << ' ' << cell->level()
-                   << ' ' << (unsigned int) cell->material_id() << std::endl
+                   << ' ' << static_cast<unsigned int>(cell->material_id()) << std::endl
                    << cell->vertex(3)
                    << ' ' << cell->level()
-                   << ' ' << (unsigned int) cell->material_id() << std::endl
+                   << ' ' << static_cast<unsigned int>(cell->material_id()) << std::endl
                    << cell->vertex(0)
                    << ' ' << cell->level()
-                   << ' ' << (unsigned int) cell->material_id() << std::endl
+                   << ' ' << static_cast<unsigned int>(cell->material_id()) << std::endl
                    << std::endl;
                                                 // back face
                out << cell->vertex(4)
                    << ' ' << cell->level()
-                   << ' ' << (unsigned int) cell->material_id() << std::endl
+                   << ' ' << static_cast<unsigned int>(cell->material_id()) << std::endl
                    << cell->vertex(5)
                    << ' ' << cell->level()
-                   << ' ' << (unsigned int) cell->material_id() << std::endl
+                   << ' ' << static_cast<unsigned int>(cell->material_id()) << std::endl
                    << cell->vertex(6)
                    << ' ' << cell->level()
-                   << ' ' << (unsigned int) cell->material_id() << std::endl
+                   << ' ' << static_cast<unsigned int>(cell->material_id()) << std::endl
                    << cell->vertex(7)
                    << ' ' << cell->level()
-                   << ' ' << (unsigned int) cell->material_id() << std::endl
+                   << ' ' << static_cast<unsigned int>(cell->material_id()) << std::endl
                    << cell->vertex(4)
                    << ' ' << cell->level()
-                   << ' ' << (unsigned int) cell->material_id() << std::endl
+                   << ' ' << static_cast<unsigned int>(cell->material_id()) << std::endl
                    << std::endl;
 
                                                 // now for the four connecting lines
                out << cell->vertex(0)
                    << ' ' << cell->level()
-                   << ' ' << (unsigned int) cell->material_id() << std::endl
+                   << ' ' << static_cast<unsigned int>(cell->material_id()) << std::endl
                    << cell->vertex(4)
                    << ' ' << cell->level()
-                   << ' ' << (unsigned int) cell->material_id() << std::endl
+                   << ' ' << static_cast<unsigned int>(cell->material_id()) << std::endl
                    << std::endl;
                out << cell->vertex(1)
                    << ' ' << cell->level()
-                   << ' ' << (unsigned int) cell->material_id() << std::endl
+                   << ' ' << static_cast<unsigned int>(cell->material_id()) << std::endl
                    << cell->vertex(5)
                    << ' ' << cell->level()
-                   << ' ' << (unsigned int) cell->material_id() << std::endl
+                   << ' ' << static_cast<unsigned int>(cell->material_id()) << std::endl
                    << std::endl;
                out << cell->vertex(2)
                    << ' ' << cell->level()
-                   << ' ' << (unsigned int) cell->material_id() << std::endl
+                   << ' ' << static_cast<unsigned int>(cell->material_id()) << std::endl
                    << cell->vertex(6)
                    << ' ' << cell->level()
-                   << ' ' << (unsigned int) cell->material_id() << std::endl
+                   << ' ' << static_cast<unsigned int>(cell->material_id()) << std::endl
                    << std::endl;
                out << cell->vertex(3)
                    << ' ' << cell->level()
-                   << ' ' << (unsigned int) cell->material_id() << std::endl
+                   << ' ' << static_cast<unsigned int>(cell->material_id()) << std::endl
                    << cell->vertex(7)
                    << ' ' << cell->level()
-                   << ' ' << (unsigned int) cell->material_id() << std::endl
+                   << ' ' << static_cast<unsigned int>(cell->material_id()) << std::endl
                    << std::endl;
                break;
        };

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.