projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
implement new wxBG_STYLE_XXX semantics for wxMSW too
[wxWidgets.git]
/
src
/
palmos
/
main.cpp
diff --git
a/src/palmos/main.cpp
b/src/palmos/main.cpp
index 2c4f957771865b993d99bc6144b438ac1df699a9..7268bcc5f328ebc3f151e70e9e054f41baa6e7c6 100644
(file)
--- a/
src/palmos/main.cpp
+++ b/
src/palmos/main.cpp
@@
-43,23
+43,16
@@
int wxEntry()
{
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 ar
g
ument
* list. Later this may be changed to reflect the application launch code
*/
* 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];
wxChar **argv = new wxChar *[argc + 1];
- for ( int i = 0; i < argc; i++ )
- {
- //argv[i] = wxStrdup(args[i]);
- argv[i] = wxStrdup(wxConvLibc.cMB2WX(args[i]));
- }
// argv[] must be NULL-terminated
argv[argc] = NULL;
// argv[] must be NULL-terminated
argv[argc] = NULL;
- return wxEntry(
argc
, argv);
+ return wxEntry(
const_cast<int>(argc)
, argv);
}
#endif // wxUSE_GUI
}
#endif // wxUSE_GUI