X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/daad5a23b7a04d149500390ec5b181c32393613d..a5de860f0b8994b2d87d0a0d3c3dedf750fa7ddb:/src/x11/dataobj.cpp diff --git a/src/x11/dataobj.cpp b/src/x11/dataobj.cpp index b0c6bbc7d4..b9b8f7a37d 100644 --- a/src/x11/dataobj.cpp +++ b/src/x11/dataobj.cpp @@ -57,12 +57,6 @@ wxDataFormat::wxDataFormat( wxDataFormatId type ) SetType( type ); } -wxDataFormat::wxDataFormat( const wxChar *id ) -{ - PrepareFormats(); - SetId( id ); -} - wxDataFormat::wxDataFormat( const wxString &id ) { PrepareFormats(); @@ -129,13 +123,12 @@ void wxDataFormat::SetId( NativeFormat format ) m_type = wxDF_PRIVATE; } -void wxDataFormat::SetId( const wxChar *id ) +void wxDataFormat::SetId( const wxString& id ) { #if !wxUSE_NANOX PrepareFormats(); m_type = wxDF_PRIVATE; - wxString tmp( id ); - m_format = XInternAtom( (Display*) wxGetDisplay(), tmp.ToAscii(), FALSE ); + m_format = XInternAtom( (Display*) wxGetDisplay(), id.ToAscii(), FALSE ); #endif }