X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/155ecd4c4221d3bbc7aa93d472d11948f21d21ab..fb8d7eb7a880f1f2e32d8830f9c5e12b2536e05f:/src/os2/dataobj.cpp?ds=inline diff --git a/src/os2/dataobj.cpp b/src/os2/dataobj.cpp index c07595d156..be55a32aef 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 @@ -328,12 +329,12 @@ bool wxBitmapDataObject::SetData( size_t nSize, const void* pBuf) m_bitmap = wxBitmap(vImage); #endif //wxUSE_STREAMS - return m_bitmap.Ok(); + return m_bitmap.IsOk(); } void wxBitmapDataObject::DoConvertToPng() { - if (!m_bitmap.Ok()) + if (!m_bitmap.IsOk()) return; #if wxUSE_STREAMS