Really fix compilation of wxURLDataObject.
Conversion from char* to wxString doesn't exist in 2.8, need to do it explicitly. Closes #11102. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61835 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1245,7 +1245,7 @@ wxString wxURLDataObject::GetURL() const
|
||||
wxCharBuffer buf(len);
|
||||
|
||||
if ( m_dataObjectLast->GetDataHere(buf.data()) )
|
||||
url = buf;
|
||||
url = wxString(buf, wxConvLibc);
|
||||
#else // !wxUSE_UNICODE
|
||||
// in ANSI build no conversion is necessary
|
||||
m_dataObjectLast->GetDataHere(wxStringBuffer(url, len));
|
||||
|
||||
Reference in New Issue
Block a user