X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7520f3da332d64a676b6f7d27a56004fabf2db36..26f7724c4b03d6d75f8aa80d6cd2b5099ac32ea1:/src/os2/dataobj.cpp?ds=sidebyside diff --git a/src/os2/dataobj.cpp b/src/os2/dataobj.cpp index 3dfd2b17e5..81939cf429 100644 --- a/src/os2/dataobj.cpp +++ b/src/os2/dataobj.cpp @@ -22,14 +22,15 @@ #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/image.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 @@ -229,7 +230,7 @@ bool wxFileDataObject::GetDataHere( void* pBuf ) const sFilenames += (wxChar)0; } - memcpy(pBuf, sFilenames.mbc_str(), sFilenames.Len() + 1); + memcpy(pBuf, sFilenames.mbc_str(), sFilenames.length() + 1); return true; } @@ -239,7 +240,7 @@ size_t wxFileDataObject::GetDataSize() const for (size_t i = 0; i < m_filenames.GetCount(); i++) { - nRes += m_filenames[i].Len(); + nRes += m_filenames[i].length(); nRes += 1; }