X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e4db172a3b318df9aff178eb6c5da149d56e0859..defeae282fad5fa8887d05d2f27cd8a4668491a5:/src/mac/classic/dataobj.cpp diff --git a/src/mac/classic/dataobj.cpp b/src/mac/classic/dataobj.cpp index 0c26a14a5b..3575f7e745 100644 --- a/src/mac/classic/dataobj.cpp +++ b/src/mac/classic/dataobj.cpp @@ -23,14 +23,15 @@ // headers // ---------------------------------------------------------------------------- +#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/mac/private.h" #include @@ -170,7 +171,7 @@ bool wxDataObject::IsSupportedFormat( bool wxFileDataObject::GetDataHere( void* pBuf ) const { - wxString sFilenames; + wxString sFilenames; for (size_t i = 0; i < m_filenames.GetCount(); i++) { @@ -178,7 +179,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; } @@ -188,7 +189,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; }