use wxString, not wxChar*, in wxDataFormat ctor and SetId() method
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46254 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -57,11 +57,11 @@ wxString wxDataFormat::GetId() const
|
||||
} // end of wxDataFormat::GetId()
|
||||
|
||||
void wxDataFormat::SetId (
|
||||
const wxChar* zId
|
||||
const wxString& zId
|
||||
)
|
||||
{
|
||||
m_uFormat = ::WinAddAtom( ::WinQuerySystemAtomTable()
|
||||
,(PSZ)zId
|
||||
,zId.char_str()
|
||||
);
|
||||
} // end of wxDataFormat::SetId
|
||||
|
||||
|
Reference in New Issue
Block a user