From 0e26773f5dda8d6e8fe7e25cff5a959759cf59d2 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Tue, 13 Oct 2015 09:15:21 +0200 Subject: [PATCH] insert \n in the stream instead of \endl --- Mesh_3/include/CGAL/IO/File_medit.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Mesh_3/include/CGAL/IO/File_medit.h b/Mesh_3/include/CGAL/IO/File_medit.h index b0d0c2d2bc5..d364a57646d 100644 --- a/Mesh_3/include/CGAL/IO/File_medit.h +++ b/Mesh_3/include/CGAL/IO/File_medit.h @@ -796,11 +796,11 @@ output_to_medit(std::ostream& os, { V[vit] = inum++; Point_3 p = vit->point(); - os << CGAL::to_double(p.x()) << " " - << CGAL::to_double(p.y()) << " " - << CGAL::to_double(p.z()) << " " + os << CGAL::to_double(p.x()) << ' ' + << CGAL::to_double(p.y()) << ' ' + << CGAL::to_double(p.z()) << ' ' << get(vertex_pmap, vit) - << std::endl; + << '\n'; } //------------------------------------------------------- @@ -823,10 +823,10 @@ output_to_medit(std::ostream& os, if (i != fit->second) { const Vertex_handle& vh = (*fit).first->vertex(i); - os << V[vh] << " "; + os << V[vh] << ' '; } } - os << get(facet_pmap, *fit) << std::endl; + os << get(facet_pmap, *fit) << '\n'; // Print triangle again if needed if ( print_each_facet_twice ) @@ -836,10 +836,10 @@ output_to_medit(std::ostream& os, if (i != fit->second) { const Vertex_handle& vh = (*fit).first->vertex(i); - os << V[vh] << " "; + os << V[vh] << ' '; } } - os << get(facet_twice_pmap, *fit) << std::endl; + os << get(facet_twice_pmap, *fit) << '\n'; } } @@ -854,9 +854,9 @@ output_to_medit(std::ostream& os, ++cit ) { for (int i=0; i<4; i++) - os << V[cit->vertex(i)] << " "; + os << V[cit->vertex(i)] << ' '; - os << get(cell_pmap, cit) << std::endl; + os << get(cell_pmap, cit) << '\n'; } //-------------------------------------------------------