Unicode compilation fix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42784 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-10-30 22:43:25 +00:00
parent c16db850cd
commit 0e4f79360f

View File

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