Fix wxMSW build in UTF-8 build.
Need an explicit cast to convert the buffer returned by wxString::t_str() to a pointer in this case. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77943 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -108,7 +108,7 @@ wxCalendarCtrl::Create(wxWindow *parent,
|
|||||||
}
|
}
|
||||||
|
|
||||||
const wxChar * const clsname = s_clsMonthCal.IsRegistered()
|
const wxChar * const clsname = s_clsMonthCal.IsRegistered()
|
||||||
? s_clsMonthCal.GetName().t_str()
|
? static_cast<const wxChar*>(s_clsMonthCal.GetName().t_str())
|
||||||
: MONTHCAL_CLASS;
|
: MONTHCAL_CLASS;
|
||||||
|
|
||||||
if ( !MSWCreateControl(clsname, wxEmptyString, pos, size) )
|
if ( !MSWCreateControl(clsname, wxEmptyString, pos, size) )
|
||||||
|
Reference in New Issue
Block a user