X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/18f3decb46a80b38801dd6590d08eb525d3a3963..d3c7fc996a73e9f6a83067bc28a3c5581a3fee65:/src/mac/classic/dataobj.cpp

diff --git a/src/mac/classic/dataobj.cpp b/src/mac/classic/dataobj.cpp
index 1e2bd14fd4..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/log.h"
-#include "wx/dataobj.h"
 #include "wx/mstream.h"
-#include "wx/image.h"
 #include "wx/mac/private.h"
 #include <Scrap.h>
 
@@ -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;
     }