From: Vadim Zeitlin Date: Tue, 18 Dec 2001 16:07:15 +0000 (+0000) Subject: fix for handling the standard X toolkit options X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/17154fc8aaf4950da5ba163eb9da4b068d167c5d?ds=inline fix for handling the standard X toolkit options git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13072 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/app.cpp b/src/gtk/app.cpp index 0ef365ec05..f5afdd777c 100644 --- a/src/gtk/app.cpp +++ b/src/gtk/app.cpp @@ -679,8 +679,8 @@ GtkWidget* wxGetRootWindow() // wxEntry //----------------------------------------------------------------------------- - -int wxEntryStart( int argc, char *argv[] ) +// NB: argc and argv may be changed here, pass by reference! +int wxEntryStart( int& argc, char *argv[] ) { #if wxUSE_THREADS /* GTK 1.2 up to version 1.2.3 has broken threads */ diff --git a/src/gtk1/app.cpp b/src/gtk1/app.cpp index 0ef365ec05..f5afdd777c 100644 --- a/src/gtk1/app.cpp +++ b/src/gtk1/app.cpp @@ -679,8 +679,8 @@ GtkWidget* wxGetRootWindow() // wxEntry //----------------------------------------------------------------------------- - -int wxEntryStart( int argc, char *argv[] ) +// NB: argc and argv may be changed here, pass by reference! +int wxEntryStart( int& argc, char *argv[] ) { #if wxUSE_THREADS /* GTK 1.2 up to version 1.2.3 has broken threads */