making sure it always returns a valid string

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2007-12-10 22:00:03 +00:00
parent 46623e91bb
commit ea6bea0f4f

View File

@@ -147,10 +147,7 @@ void wxDataFormat::SetType( wxDataFormatId dataType )
wxString wxDataFormat::GetId() const wxString wxDataFormat::GetId() const
{ {
wxCHECK_MSG( !IsStandard(), wxEmptyString, return wxCFStringRef(wxCFRetain((CFStringRef)m_format)).AsString();
wxT("name of predefined format cannot be retrieved") );
return m_id;
} }
void wxDataFormat::SetId( NativeFormat format ) void wxDataFormat::SetId( NativeFormat format )