The size of argv array is changed to 1 in all basic viewers.

This commit is contained in:
Guillaume Damiand 2021-11-10 09:59:48 +01:00
parent 5afc4cd6e2
commit ee11c858b5
15 changed files with 15 additions and 15 deletions

View File

@ -78,7 +78,7 @@ void draw(const CGAL::Polygon_set_2<T, C>& aps2,
{
CGAL::Qt::init_ogl_context(4,3);
int argc=1;
const char* argv[2]={"t2_viewer","\0"};
const char* argv[1]={"t2_viewer"};
QApplication app(argc,const_cast<char**>(argv));
SimplePolygonSet2ViewerQt<CGAL::Polygon_set_2<T, C> >
mainwindow(app.activeWindow(), aps2, title);

View File

@ -408,7 +408,7 @@ void draw(const CGAL_LCC_TYPE& alcc,
{
CGAL::Qt::init_ogl_context(4,3);
int argc=1;
const char* argv[2]={"lccviewer","\0"};
const char* argv[1]={"lccviewer"};
QApplication app(argc,const_cast<char**>(argv));
SimpleLCCViewerQt<CGAL_LCC_TYPE, DrawingFunctorLCC>
mainwindow(app.activeWindow(), &alcc, title, nofill, drawing_functor);

View File

@ -256,7 +256,7 @@ void draw(const CGAL_NEF3_TYPE &anef,
{
CGAL::Qt::init_ogl_context(4,3);
int argc = 1;
const char *argv[2] = {"nef_polyhedron_viewer", "\0"};
const char *argv[1] = {"nef_polyhedron_viewer"};
QApplication app(argc, const_cast<char **>(argv));
DefaultColorFunctorNefPolyhedron fcolor;
SimpleNefPolyhedronViewerQt<CGAL_NEF3_TYPE,

View File

@ -263,7 +263,7 @@ void draw(const CGAL_P2T2_TYPE& ap2t2,
{
CGAL::Qt::init_ogl_context(4,3);
int argc=1;
const char* argv[2]={"p2t2_viewer","\0"};
const char* argv[1]={"p2t2_viewer"};
QApplication app(argc,const_cast<char**>(argv));
DefaultColorFunctorP2T2 fcolor;
SimplePeriodic2Triangulation2ViewerQt<CGAL_P2T2_TYPE,

View File

@ -104,7 +104,7 @@ void draw(const Point_set_3<P, V>& apointset,
{
CGAL::Qt::init_ogl_context(4,3);
int argc=1;
const char* argv[2]={"point_set_viewer","\0"};
const char* argv[1]={"point_set_viewer"};
QApplication app(argc,const_cast<char**>(argv));
SimplePointSetViewerQt<Point_set_3<P, V> > mainwindow(app.activeWindow(),
apointset,

View File

@ -125,7 +125,7 @@ void draw(const CGAL::Polygon_2<T, C>& ap2,
{
CGAL::Qt::init_ogl_context(4,3);
int argc=1;
const char* argv[2]={"t2_viewer","\0"};
const char* argv[1]={"t2_viewer"};
QApplication app(argc,const_cast<char**>(argv));
SimplePolygon2ViewerQt<CGAL::Polygon_2<T, C> >
mainwindow(app.activeWindow(), ap2, title);

View File

@ -145,7 +145,7 @@ void draw(const CGAL::Polygon_with_holes_2<T, C>& ap2,
{
CGAL::Qt::init_ogl_context(4,3);
int argc=1;
const char* argv[2]={"t2_viewer","\0"};
const char* argv[1]={"t2_viewer"};
QApplication app(argc,const_cast<char**>(argv));
SimplePolygonWithHoles2ViewerQt<CGAL::Polygon_with_holes_2<T, C> >
mainwindow(app.activeWindow(), ap2, title);

View File

@ -47,7 +47,7 @@ void draw(const CGAL_POLY_TYPE& apoly,
{
CGAL::Qt::init_ogl_context(4,3);
int argc=1;
const char* argv[2]={"polyhedron_viewer","\0"};
const char* argv[1]={"polyhedron_viewer"};
QApplication app(argc,const_cast<char**>(argv));
SimpleFaceGraphViewerQt
mainwindow(app.activeWindow(), apoly, title, nofill);

View File

@ -162,7 +162,7 @@ void draw(const CGAL_SS_TYPE& ass2,
if (!cgal_test_suite)
{
int argc=1;
const char* argv[2]={"ss2_viewer","\0"};
const char* argv[1]={"ss2_viewer"};
QApplication app(argc,const_cast<char**>(argv));
DefaultColorFunctorSS2 fcolor;
SimpleStraightSkeleton2ViewerQt<CGAL_SS_TYPE, DefaultColorFunctorSS2>

View File

@ -263,7 +263,7 @@ void draw_surface_mesh_with_small_faces(CGAL::Surface_mesh<K>& amesh)
if (!cgal_test_suite)
{
int argc=1;
const char* argv[2]={"surface_mesh_viewer","\0"};
const char* argv[1]={"surface_mesh_viewer"};
QApplication app(argc,const_cast<char**>(argv));
SimpleSurfaceMeshWithSmallFacesViewerQt<CGAL::Surface_mesh<K>>
mainwindow(app.activeWindow(), amesh);

View File

@ -55,7 +55,7 @@ void draw(const Surface_mesh<K>& amesh,
{
CGAL::Qt::init_ogl_context(4,3);
int argc=1;
const char* argv[2]={"surface_mesh_viewer","\0"};
const char* argv[1]={"surface_mesh_viewer"};
QApplication app(argc,const_cast<char**>(argv));
SimpleFaceGraphViewerQt mainwindow(app.activeWindow(), amesh, title,
nofill);

View File

@ -412,7 +412,7 @@ void draw(const Mesh& alcc,
{
CGAL::Qt::init_ogl_context(4,3);
int argc=1;
const char* argv[2]={"lccviewer","\0"};
const char* argv[1]={"lccviewer"};
QApplication app(argc,const_cast<char**>(argv));
Face_graph_with_path_viewer<Mesh, DrawingFunctor> mainwindow(app.activeWindow(),
alcc, &paths, amark,

View File

@ -147,7 +147,7 @@ void draw(const CGAL_T2_TYPE& at2,
{
CGAL::Qt::init_ogl_context(4,3);
int argc=1;
const char* argv[2]={"t2_viewer","\0"};
const char* argv[1]={"t2_viewer"};
QApplication app(argc,const_cast<char**>(argv));
DefaultColorFunctorT2 fcolor;
SimpleTriangulation2ViewerQt<CGAL_T2_TYPE, DefaultColorFunctorT2>

View File

@ -153,7 +153,7 @@ void draw(const CGAL_T3_TYPE& at3,
{
CGAL::Qt::init_ogl_context(4,3);
int argc=1;
const char* argv[2]={"t3_viewer","\0"};
const char* argv[1]={"t3_viewer"};
QApplication app(argc,const_cast<char**>(argv));
DefaultColorFunctorT3 fcolor;
SimpleTriangulation3ViewerQt<CGAL_T3_TYPE, DefaultColorFunctorT3>

View File

@ -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[2] = {"voronoi_2_viewer", "\0"};
const char *argv[1] = {"voronoi_2_viewer"};
QApplication app(argc, const_cast<char **>(argv));
DefaultColorFunctorV2 fcolor;
SimpleVoronoiDiagram2ViewerQt<CGAL_VORONOI_TYPE, DefaultColorFunctorV2>