diff --git a/Boolean_set_operations_2/include/CGAL/draw_polygon_set_2.h b/Boolean_set_operations_2/include/CGAL/draw_polygon_set_2.h index b4538e58628..f11ae76a1c6 100644 --- a/Boolean_set_operations_2/include/CGAL/draw_polygon_set_2.h +++ b/Boolean_set_operations_2/include/CGAL/draw_polygon_set_2.h @@ -78,7 +78,7 @@ void draw(const CGAL::Polygon_set_2& aps2, { CGAL::Qt::init_ogl_context(4,3); int argc=1; - const char* argv[1]={"t2_viewer"}; + const char* argv[2]={"t2_viewer", nullptr}; QApplication app(argc,const_cast(argv)); SimplePolygonSet2ViewerQt > mainwindow(app.activeWindow(), aps2, title); diff --git a/Linear_cell_complex/include/CGAL/draw_linear_cell_complex.h b/Linear_cell_complex/include/CGAL/draw_linear_cell_complex.h index b6e0b779f3a..73f360debfa 100644 --- a/Linear_cell_complex/include/CGAL/draw_linear_cell_complex.h +++ b/Linear_cell_complex/include/CGAL/draw_linear_cell_complex.h @@ -408,7 +408,7 @@ void draw(const CGAL_LCC_TYPE& alcc, { CGAL::Qt::init_ogl_context(4,3); int argc=1; - const char* argv[1]={"lccviewer"}; + const char* argv[2]={"lccviewer", nullptr}; QApplication app(argc,const_cast(argv)); SimpleLCCViewerQt mainwindow(app.activeWindow(), &alcc, title, nofill, drawing_functor); diff --git a/Nef_3/include/CGAL/draw_nef_3.h b/Nef_3/include/CGAL/draw_nef_3.h index 321f817f3d8..5a81d639ea3 100644 --- a/Nef_3/include/CGAL/draw_nef_3.h +++ b/Nef_3/include/CGAL/draw_nef_3.h @@ -256,7 +256,7 @@ void draw(const CGAL_NEF3_TYPE &anef, { CGAL::Qt::init_ogl_context(4,3); int argc = 1; - const char *argv[1] = {"nef_polyhedron_viewer"}; + const char *argv[2] = {"nef_polyhedron_viewer", nullptr}; QApplication app(argc, const_cast(argv)); DefaultColorFunctorNefPolyhedron fcolor; SimpleNefPolyhedronViewerQt(argv)); DefaultColorFunctorP2T2 fcolor; SimplePeriodic2Triangulation2ViewerQt& apointset, { CGAL::Qt::init_ogl_context(4,3); int argc=1; - const char* argv[1]={"point_set_viewer"}; + const char* argv[2]={"point_set_viewer", nullptr}; QApplication app(argc,const_cast(argv)); SimplePointSetViewerQt > mainwindow(app.activeWindow(), apointset, diff --git a/Polygon/include/CGAL/draw_polygon_2.h b/Polygon/include/CGAL/draw_polygon_2.h index 1aa421184a4..1ab6ea14267 100644 --- a/Polygon/include/CGAL/draw_polygon_2.h +++ b/Polygon/include/CGAL/draw_polygon_2.h @@ -125,7 +125,7 @@ void draw(const CGAL::Polygon_2& ap2, { CGAL::Qt::init_ogl_context(4,3); int argc=1; - const char* argv[1]={"t2_viewer"}; + const char* argv[2]={"t2_viewer", nullptr}; QApplication app(argc,const_cast(argv)); SimplePolygon2ViewerQt > mainwindow(app.activeWindow(), ap2, title); diff --git a/Polygon/include/CGAL/draw_polygon_with_holes_2.h b/Polygon/include/CGAL/draw_polygon_with_holes_2.h index a38f5a3c2de..be58464ebf8 100644 --- a/Polygon/include/CGAL/draw_polygon_with_holes_2.h +++ b/Polygon/include/CGAL/draw_polygon_with_holes_2.h @@ -145,7 +145,7 @@ void draw(const CGAL::Polygon_with_holes_2& ap2, { CGAL::Qt::init_ogl_context(4,3); int argc=1; - const char* argv[1]={"t2_viewer"}; + const char* argv[2]={"t2_viewer", nullptr}; QApplication app(argc,const_cast(argv)); SimplePolygonWithHoles2ViewerQt > mainwindow(app.activeWindow(), ap2, title); diff --git a/Polyhedron/include/CGAL/draw_polyhedron.h b/Polyhedron/include/CGAL/draw_polyhedron.h index 80ed7768039..0866e27ebc0 100644 --- a/Polyhedron/include/CGAL/draw_polyhedron.h +++ b/Polyhedron/include/CGAL/draw_polyhedron.h @@ -47,7 +47,7 @@ void draw(const CGAL_POLY_TYPE& apoly, { CGAL::Qt::init_ogl_context(4,3); int argc=1; - const char* argv[1]={"polyhedron_viewer"}; + const char* argv[2]={"polyhedron_viewer", nullptr}; QApplication app(argc,const_cast(argv)); SimpleFaceGraphViewerQt mainwindow(app.activeWindow(), apoly, title, nofill); diff --git a/Straight_skeleton_2/include/CGAL/draw_straight_skeleton_2.h b/Straight_skeleton_2/include/CGAL/draw_straight_skeleton_2.h index 3837d363331..60a631250a1 100644 --- a/Straight_skeleton_2/include/CGAL/draw_straight_skeleton_2.h +++ b/Straight_skeleton_2/include/CGAL/draw_straight_skeleton_2.h @@ -162,7 +162,7 @@ void draw(const CGAL_SS_TYPE& ass2, if (!cgal_test_suite) { int argc=1; - const char* argv[1]={"ss2_viewer"}; + const char* argv[2]={"ss2_viewer", nullptr}; QApplication app(argc,const_cast(argv)); DefaultColorFunctorSS2 fcolor; SimpleStraightSkeleton2ViewerQt diff --git a/Surface_mesh/examples/Surface_mesh/draw_surface_mesh_small_faces.h b/Surface_mesh/examples/Surface_mesh/draw_surface_mesh_small_faces.h index 0f36d86962d..0e5043c8f08 100644 --- a/Surface_mesh/examples/Surface_mesh/draw_surface_mesh_small_faces.h +++ b/Surface_mesh/examples/Surface_mesh/draw_surface_mesh_small_faces.h @@ -263,7 +263,7 @@ void draw_surface_mesh_with_small_faces(CGAL::Surface_mesh& amesh) if (!cgal_test_suite) { int argc=1; - const char* argv[1]={"surface_mesh_viewer"}; + const char* argv[2]={"surface_mesh_viewer", nullptr}; QApplication app(argc,const_cast(argv)); SimpleSurfaceMeshWithSmallFacesViewerQt> mainwindow(app.activeWindow(), amesh); diff --git a/Surface_mesh/include/CGAL/draw_surface_mesh.h b/Surface_mesh/include/CGAL/draw_surface_mesh.h index 017e07d1fe2..3459392aec1 100644 --- a/Surface_mesh/include/CGAL/draw_surface_mesh.h +++ b/Surface_mesh/include/CGAL/draw_surface_mesh.h @@ -55,7 +55,7 @@ void draw(const Surface_mesh& amesh, { CGAL::Qt::init_ogl_context(4,3); int argc=1; - const char* argv[1]={"surface_mesh_viewer"}; + const char* argv[2]={"surface_mesh_viewer", nullptr}; QApplication app(argc,const_cast(argv)); SimpleFaceGraphViewerQt mainwindow(app.activeWindow(), amesh, title, nofill); diff --git a/Triangulation_2/include/CGAL/draw_triangulation_2.h b/Triangulation_2/include/CGAL/draw_triangulation_2.h index 65bad5ccafc..9fabd041833 100644 --- a/Triangulation_2/include/CGAL/draw_triangulation_2.h +++ b/Triangulation_2/include/CGAL/draw_triangulation_2.h @@ -147,7 +147,7 @@ void draw(const CGAL_T2_TYPE& at2, { CGAL::Qt::init_ogl_context(4,3); int argc=1; - const char* argv[1]={"t2_viewer"}; + const char* argv[2]={"t2_viewer", nullptr}; QApplication app(argc,const_cast(argv)); DefaultColorFunctorT2 fcolor; SimpleTriangulation2ViewerQt diff --git a/Triangulation_3/include/CGAL/draw_triangulation_3.h b/Triangulation_3/include/CGAL/draw_triangulation_3.h index ac35b93af03..d7b294fa164 100644 --- a/Triangulation_3/include/CGAL/draw_triangulation_3.h +++ b/Triangulation_3/include/CGAL/draw_triangulation_3.h @@ -153,7 +153,7 @@ void draw(const CGAL_T3_TYPE& at3, { CGAL::Qt::init_ogl_context(4,3); int argc=1; - const char* argv[1]={"t3_viewer"}; + const char* argv[2]={"t3_viewer", nullptr}; QApplication app(argc,const_cast(argv)); DefaultColorFunctorT3 fcolor; SimpleTriangulation3ViewerQt diff --git a/Voronoi_diagram_2/include/CGAL/draw_voronoi_diagram_2.h b/Voronoi_diagram_2/include/CGAL/draw_voronoi_diagram_2.h index a7f0c7b0774..f92e9af630e 100644 --- a/Voronoi_diagram_2/include/CGAL/draw_voronoi_diagram_2.h +++ b/Voronoi_diagram_2/include/CGAL/draw_voronoi_diagram_2.h @@ -319,7 +319,7 @@ void draw(const CGAL_VORONOI_TYPE &av2, if (!cgal_test_suite) { CGAL::Qt::init_ogl_context(4,3); int argc = 1; - const char *argv[1] = {"voronoi_2_viewer"}; + const char *argv[2] = {"voronoi_2_viewer", nullptr}; QApplication app(argc, const_cast(argv)); DefaultColorFunctorV2 fcolor; SimpleVoronoiDiagram2ViewerQt