Git commit 592f275d296abcfaa98bfa981f4eeec663c64330 by Harald Fernengel. Committed on 19/03/2014 at 10:22. Pushed by harald into branch 'frameworks'. Do not crash on OS X QApplication expects a reference to argc, passing a temporary leads to a crash later on M +1 -1 program/program.cpp M +1 -1 program/program.h http://commits.kde.org/okteta/592f275d296abcfaa98bfa981f4eeec663c64330 diff --git a/program/program.cpp b/program/program.cpp index c72f377..3455089 100644 --- a/program/program.cpp +++ b/program/program.cpp @@ -60,7 +60,7 @@ namespace Kasten // static const char OffsetOptionId[] =3D "offset"; // static const char OffsetOptionShortId[] =3D "o"; = -OktetaProgram::OktetaProgram( int argc, char* argv[] ) +OktetaProgram::OktetaProgram( int &argc, char* argv[] ) : mApp( argc, argv ) { #ifndef QT_NO_DEBUG diff --git a/program/program.h b/program/program.h index 54a49d4..c97e2a4 100644 --- a/program/program.h +++ b/program/program.h @@ -41,7 +41,7 @@ class ByteArrayViewProfileManager; class OktetaProgram { public: - OktetaProgram( int argc, char* argv[] ); + OktetaProgram( int &argc, char* argv[] ); ~OktetaProgram(); = public: