X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dbe4a80c57a77b249ef32117efe9fd923066f958..328f0df87c7c315602ed0a8b39ace1ff8f88eb89:/src/mac/carbon/dataobj.cpp diff --git a/src/mac/carbon/dataobj.cpp b/src/mac/carbon/dataobj.cpp index c31a36f618..cdec68b05d 100644 --- a/src/mac/carbon/dataobj.cpp +++ b/src/mac/carbon/dataobj.cpp @@ -147,10 +147,7 @@ void wxDataFormat::SetType( wxDataFormatId dataType ) wxString wxDataFormat::GetId() const { - wxCHECK_MSG( !IsStandard(), wxEmptyString, - wxT("name of predefined format cannot be retrieved") ); - - return m_id; + return wxCFStringRef(wxCFRetain((CFStringRef)m_format)).AsString(); } void wxDataFormat::SetId( NativeFormat format )