Class derived from QApplication should have the constructor passing argc by reference... (this bug caused crashing at startup...)

This commit is contained in:
Paolo Cignoni cignoni 2011-10-20 22:21:28 +00:00
parent 77fdef6ba6
commit fbbefba811
2 changed files with 3 additions and 3 deletions

View File

@ -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)
{

View File

@ -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
#endif