X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/155ecd4c4221d3bbc7aa93d472d11948f21d21ab..3c47c04740b7c456823e0fd31edbdf1e6bfff43b:/src/os2/dataobj.cpp?ds=sidebyside diff --git a/src/os2/dataobj.cpp b/src/os2/dataobj.cpp index c07595d156..81939cf429 100644 --- a/src/os2/dataobj.cpp +++ b/src/os2/dataobj.cpp @@ -22,13 +22,14 @@ #if wxUSE_DATAOBJ +#include "wx/dataobj.h" + #ifndef WX_PRECOMP #include "wx/intl.h" #include "wx/log.h" #include "wx/image.h" #endif -#include "wx/dataobj.h" #include "wx/mstream.h" #include "wx/os2/private.h" @@ -56,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