]> git.saurik.com Git - wxWidgets.git/commitdiff
Unicode compilation fix
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 30 Oct 2006 22:43:25 +0000 (22:43 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 30 Oct 2006 22:43:25 +0000 (22:43 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42784 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/x11/utils.cpp

index df9d4f9da5b42e29040cc2e3a1017e953feec1c7..245463261e5e091097da522bb83909bae6f03e8c 100644 (file)
@@ -272,8 +272,11 @@ void wxCloseDisplay()
 
 bool wxSetDisplay(const wxString& displayName)
 {
-    Display *
-        dpy = XOpenDisplay(displayName.empty() ? NULL : displayName.mb_str());
+    Display *dpy = XOpenDisplay
+                   (
+                    displayName.empty() ? NULL
+                                        : (const char *)displayName.mb_str()
+                   );
 
     if ( !dpy )
     {