From fbbefba81134085e74d8a87fdd4c381bcbc17485 Mon Sep 17 00:00:00 2001 From: Paolo Cignoni cignoni Date: Thu, 20 Oct 2011 22:21:28 +0000 Subject: [PATCH] Class derived from QApplication should have the constructor passing argc by reference... (this bug caused crashing at startup...) --- src/common/mlapplication.cpp | 2 +- src/common/mlapplication.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/mlapplication.cpp b/src/common/mlapplication.cpp index 09ec1c7d6..636c9a328 100644 --- a/src/common/mlapplication.cpp +++ b/src/common/mlapplication.cpp @@ -1,7 +1,7 @@ #include "mlapplication.h" #include "mlexception.h" -MeshLabApplication::MeshLabApplication( int argc, char *argv[] ) +MeshLabApplication::MeshLabApplication( int &argc, char *argv[] ) :QApplication(argc,argv) { diff --git a/src/common/mlapplication.h b/src/common/mlapplication.h index 592c59b93..c53cc41c2 100644 --- a/src/common/mlapplication.h +++ b/src/common/mlapplication.h @@ -6,9 +6,9 @@ class MeshLabApplication : public QApplication { public: - MeshLabApplication(int argc, char *argv[]); + MeshLabApplication(int &argc, char *argv[]); ~MeshLabApplication(); bool notify(QObject * rec, QEvent * ev); }; -#endif \ No newline at end of file +#endif