wxDataObject changes - ok for MSW, still not for GTK/Motif/...

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4090 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1999-10-21 01:58:57 +00:00
parent e1ee679c2e
commit 9e2896e5c8
17 changed files with 852 additions and 589 deletions

View File

@@ -175,6 +175,10 @@ bool wxTextDataObject::SetData(size_t WXUNUSED(len), const void *buf)
// wxFileDataObjectBase
// ----------------------------------------------------------------------------
// VZ: I don't need this in MSW finally, so if it is needed in wxGTK, it should
// be moved to gtk/dataobj.cpp
#if 0
wxString wxFileDataObjectBase::GetFilenames() const
{
wxString str;
@@ -212,6 +216,8 @@ void wxFileDataObjectBase::SetFilenames(const wxChar* filenames)
}
}
#endif // 0
// ----------------------------------------------------------------------------
// wxCustomDataObject
// ----------------------------------------------------------------------------
@@ -257,7 +263,7 @@ bool wxCustomDataObject::GetDataHere(void *buf) const
return TRUE;
}
bool wxCustomDataObject::SetData(size_t len, const void *buf)
bool wxCustomDataObject::SetData(size_t size, const void *buf)
{
Free();
@@ -265,7 +271,7 @@ bool wxCustomDataObject::SetData(size_t len, const void *buf)
if ( !m_data )
return FALSE;
memcpy(m_data, buf, m_size = len);
memcpy(m_data, buf, m_size = size);
return TRUE;
}