From: hartmann Date: Mon, 19 Feb 2001 11:53:41 +0000 (+0000) Subject: Replace C-style casts by C++-style casts. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf2a46d0d5609a776ba9393d02695172f36b1ce8;p=dealii-svn.git Replace C-style casts by C++-style casts. git-svn-id: https://svn.dealii.org/trunk@3968 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/source/grid/grid_out.cc b/deal.II/deal.II/source/grid/grid_out.cc index 9d9d1d85d5..1eda7a75a6 100644 --- a/deal.II/deal.II/source/grid/grid_out.cc +++ b/deal.II/deal.II/source/grid/grid_out.cc @@ -242,29 +242,29 @@ void GridOut::write_gnuplot (const Triangulation &tria, case 1: out << cell->vertex(0) << ' ' << cell->level() - << ' ' << (unsigned int) cell->material_id() << std::endl + << ' ' << static_cast(cell->material_id()) << std::endl << cell->vertex(1) << ' ' << cell->level() - << ' ' << (unsigned int) cell->material_id() << std::endl + << ' ' << static_cast(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(cell->material_id()) << std::endl << cell->vertex(1) << ' ' << cell->level() - << ' ' << (unsigned int) cell->material_id() << std::endl + << ' ' << static_cast(cell->material_id()) << std::endl << cell->vertex(2) << ' ' << cell->level() - << ' ' << (unsigned int) cell->material_id() << std::endl + << ' ' << static_cast(cell->material_id()) << std::endl << cell->vertex(3) << ' ' << cell->level() - << ' ' << (unsigned int) cell->material_id() << std::endl + << ' ' << static_cast(cell->material_id()) << std::endl << cell->vertex(0) << ' ' << cell->level() - << ' ' << (unsigned int) cell->material_id() << std::endl + << ' ' << static_cast(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 &tria, // front face out << cell->vertex(0) << ' ' << cell->level() - << ' ' << (unsigned int) cell->material_id() << std::endl + << ' ' << static_cast(cell->material_id()) << std::endl << cell->vertex(1) << ' ' << cell->level() - << ' ' << (unsigned int) cell->material_id() << std::endl + << ' ' << static_cast(cell->material_id()) << std::endl << cell->vertex(2) << ' ' << cell->level() - << ' ' << (unsigned int) cell->material_id() << std::endl + << ' ' << static_cast(cell->material_id()) << std::endl << cell->vertex(3) << ' ' << cell->level() - << ' ' << (unsigned int) cell->material_id() << std::endl + << ' ' << static_cast(cell->material_id()) << std::endl << cell->vertex(0) << ' ' << cell->level() - << ' ' << (unsigned int) cell->material_id() << std::endl + << ' ' << static_cast(cell->material_id()) << std::endl << std::endl; // back face out << cell->vertex(4) << ' ' << cell->level() - << ' ' << (unsigned int) cell->material_id() << std::endl + << ' ' << static_cast(cell->material_id()) << std::endl << cell->vertex(5) << ' ' << cell->level() - << ' ' << (unsigned int) cell->material_id() << std::endl + << ' ' << static_cast(cell->material_id()) << std::endl << cell->vertex(6) << ' ' << cell->level() - << ' ' << (unsigned int) cell->material_id() << std::endl + << ' ' << static_cast(cell->material_id()) << std::endl << cell->vertex(7) << ' ' << cell->level() - << ' ' << (unsigned int) cell->material_id() << std::endl + << ' ' << static_cast(cell->material_id()) << std::endl << cell->vertex(4) << ' ' << cell->level() - << ' ' << (unsigned int) cell->material_id() << std::endl + << ' ' << static_cast(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(cell->material_id()) << std::endl << cell->vertex(4) << ' ' << cell->level() - << ' ' << (unsigned int) cell->material_id() << std::endl + << ' ' << static_cast(cell->material_id()) << std::endl << std::endl; out << cell->vertex(1) << ' ' << cell->level() - << ' ' << (unsigned int) cell->material_id() << std::endl + << ' ' << static_cast(cell->material_id()) << std::endl << cell->vertex(5) << ' ' << cell->level() - << ' ' << (unsigned int) cell->material_id() << std::endl + << ' ' << static_cast(cell->material_id()) << std::endl << std::endl; out << cell->vertex(2) << ' ' << cell->level() - << ' ' << (unsigned int) cell->material_id() << std::endl + << ' ' << static_cast(cell->material_id()) << std::endl << cell->vertex(6) << ' ' << cell->level() - << ' ' << (unsigned int) cell->material_id() << std::endl + << ' ' << static_cast(cell->material_id()) << std::endl << std::endl; out << cell->vertex(3) << ' ' << cell->level() - << ' ' << (unsigned int) cell->material_id() << std::endl + << ' ' << static_cast(cell->material_id()) << std::endl << cell->vertex(7) << ' ' << cell->level() - << ' ' << (unsigned int) cell->material_id() << std::endl + << ' ' << static_cast(cell->material_id()) << std::endl << std::endl; break; };