Avoid passing wxChar* to API functions (patch #1830017).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49837 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Neis
2007-11-11 22:35:20 +00:00
parent c22bb3442e
commit 932762afbf
2 changed files with 4 additions and 3 deletions

View File

@@ -2941,6 +2941,7 @@ bool wxWindowOS2::OS2Create( PSZ zClass,
long lControlId = 0L;
wxWindowCreationHook vHook(this);
wxString sClassName((wxChar*)zClass);
wxString sTitle(zTitle ? zTitle : wxEmptyString);
OS2GetCreateWindowCoords( rPos
,rSize
@@ -2969,7 +2970,7 @@ bool wxWindowOS2::OS2Create( PSZ zClass,
}
m_hWnd = (WXHWND)::WinCreateWindow( (HWND)OS2GetParent()
,sClassName.c_str()
,(zTitle ? zTitle : wxEmptyString)
,sTitle.c_str()
,(ULONG)dwStyle
,(LONG)0L
,(LONG)0L