// wxDataObjectComposite
// ----------------------------------------------------------------------------
+wxDataObjectComposite::wxDataObjectComposite()
+{
+ m_preferred = 0;
+
+ m_dataObjects.DeleteContents(TRUE);
+}
+
wxDataObjectSimple *
wxDataObjectComposite::GetObject(const wxDataFormat& format) const
{
{
wxDataObjectSimple *dataObj = GetObject(format);
- wxCHECK_MSG( dataObj, FALSE,
+ wxCHECK_MSG( dataObj, 0,
wxT("unsupported format in wxDataObjectComposite"));
return dataObj->GetBufferOffset( format );
{
wxDataObjectSimple *dataObj = GetObject(format);
- wxCHECK_MSG( dataObj, FALSE,
+ wxCHECK_MSG( dataObj, NULL,
wxT("unsupported format in wxDataObjectComposite"));
return dataObj->GetSizeFromBuffer( buffer, size, format );
{
wxDataObjectSimple *dataObj = GetObject(format);
- wxCHECK_MSG( dataObj, FALSE,
+ wxCHECK_MSG( dataObj, NULL,
wxT("unsupported format in wxDataObjectComposite"));
return dataObj->SetSizeInBuffer( buffer, size, format );