]> git.saurik.com Git - wxWidgets.git/commitdiff
Unicode compilation fixes
authorVáclav Slavík <vslavik@fastmail.fm>
Mon, 7 Jul 2003 08:56:16 +0000 (08:56 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Mon, 7 Jul 2003 08:56:16 +0000 (08:56 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21738 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/app.cpp
src/gtk1/app.cpp

index b7ce136139ce62844efd135accfbe25430c97f7c..8ded6a5944b77fddf5d437767ff950c52019fa2a 100644 (file)
@@ -706,7 +706,7 @@ bool wxApp::Initialize(int& argc, wxChar **argv)
 #if wxUSE_UNICODE
     // gtk_init() wants UTF-8, not wchar_t, so convert
     int i;
-    char *argvGTK = new char *[argc + 1];
+    char **argvGTK = new char *[argc + 1];
     for ( i = 0; i < argc; i++ )
     {
         argvGTK[i] = wxStrdupA(wxConvUTF8.cWX2MB(argv[i]));
@@ -722,7 +722,7 @@ bool wxApp::Initialize(int& argc, wxChar **argv)
         // we have to drop the parameters which were consumed by GTK+
         for ( i = 0; i < argcGTK; i++ )
         {
-            while ( wxStrcmp(wxConvUTF8.cWX2MB(argv[i]), argvGTK[i]) != 0 )
+            while ( strcmp(wxConvUTF8.cWX2MB(argv[i]), argvGTK[i]) != 0 )
             {
                 memmove(argv + i, argv + i + 1, argc - i);
             }
index b7ce136139ce62844efd135accfbe25430c97f7c..8ded6a5944b77fddf5d437767ff950c52019fa2a 100644 (file)
@@ -706,7 +706,7 @@ bool wxApp::Initialize(int& argc, wxChar **argv)
 #if wxUSE_UNICODE
     // gtk_init() wants UTF-8, not wchar_t, so convert
     int i;
-    char *argvGTK = new char *[argc + 1];
+    char **argvGTK = new char *[argc + 1];
     for ( i = 0; i < argc; i++ )
     {
         argvGTK[i] = wxStrdupA(wxConvUTF8.cWX2MB(argv[i]));
@@ -722,7 +722,7 @@ bool wxApp::Initialize(int& argc, wxChar **argv)
         // we have to drop the parameters which were consumed by GTK+
         for ( i = 0; i < argcGTK; i++ )
         {
-            while ( wxStrcmp(wxConvUTF8.cWX2MB(argv[i]), argvGTK[i]) != 0 )
+            while ( strcmp(wxConvUTF8.cWX2MB(argv[i]), argvGTK[i]) != 0 )
             {
                 memmove(argv + i, argv + i + 1, argc - i);
             }