X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/657865d295e327e679d3ea493cff6fb1ca50cd3c..e97f6ab64ef2e1e3839114d95ad6b60b7ac5bd27:/include/wx/msw/ole/dataobj.h?ds=sidebyside diff --git a/include/wx/msw/ole/dataobj.h b/include/wx/msw/ole/dataobj.h index 06fcfd6a67..80a1e13e43 100644 --- a/include/wx/msw/ole/dataobj.h +++ b/include/wx/msw/ole/dataobj.h @@ -87,7 +87,7 @@ class WXDLLEXPORT wxTextDataObject : public wxDataObject { public: // ctors - wxTextDataObject(); + wxTextDataObject() { } wxTextDataObject(const wxString& strText) : m_strText(strText) { } void Init(const wxString& strText) { m_strText = strText; } @@ -131,17 +131,15 @@ public: virtual wxDataFormat GetFormat() const { return wxDF_BITMAP; } -/* ?? // implement base class pure virtuals virtual wxDataFormat GetPreferredFormat() const - { return (wxDataFormat) wxDataObject::Text; } + { return (wxDataFormat) wxDataObject::Bitmap; } virtual bool IsSupportedFormat(wxDataFormat format) const - { return format == wxDataObject::Text || format == wxDataObject::Locale; } + { return format == wxDataObject::Bitmap; } virtual size_t GetDataSize() const - { return m_strText.Len() + 1; } // +1 for trailing '\0'of course + { wxASSERT(false); return 0; } // BEMIMP virtual void GetDataHere(void *pBuf) const - { memcpy(pBuf, m_strText.c_str(), GetDataSize()); } -*/ + { wxASSERT(false); } // BEMIMP private: wxBitmap m_bitmap;