X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d5da0ce7cb746318511b3974b7882c72c0de45e2..74a8f67d96591cec101def2a7d47c64072aff7fd:/src/palmos/main.cpp?ds=sidebyside diff --git a/src/palmos/main.cpp b/src/palmos/main.cpp index c7658e324f..7268bcc5f3 100644 --- a/src/palmos/main.cpp +++ b/src/palmos/main.cpp @@ -26,9 +26,9 @@ #ifndef WX_PRECOMP #include "wx/event.h" + #include "wx/app.h" #endif //WX_PRECOMP -#include "wx/app.h" #include "wx/cmdline.h" #if wxUSE_GUI @@ -43,23 +43,16 @@ int wxEntry() { - /* There is no command line in PalmOS. For now generate a fake arument + /* There is no command line in PalmOS. For now generate a fake argument * list. Later this may be changed to reflect the application launch code */ - wxArrayString args; - int argc = args.GetCount(); - - // +1 here for the terminating NULL + static const int argc = 0; wxChar **argv = new wxChar *[argc + 1]; - for ( int i = 0; i < argc; i++ ) - { - argv[i] = wxStrdup(args[i]); - } // argv[] must be NULL-terminated argv[argc] = NULL; - return wxEntry(argc, argv); + return wxEntry(const_cast(argc), argv); } #endif // wxUSE_GUI