X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3f480da37ca0840ddbe48b908d511d2e9fc20bf4..049426fc8013b222c71ce44ca491e7461499085f:/src/gtk1/dataobj.cpp diff --git a/src/gtk1/dataobj.cpp b/src/gtk1/dataobj.cpp index 342d813401..bb9e817c05 100644 --- a/src/gtk1/dataobj.cpp +++ b/src/gtk1/dataobj.cpp @@ -56,13 +56,13 @@ wxDataFormat::wxDataFormat( const wxString &id ) SetId( id ); } -wxDataFormat::wxDataFormat( wxDataFormat &format ) +wxDataFormat::wxDataFormat( const wxDataFormat &format ) { if (!g_textAtom) g_textAtom = gdk_atom_intern( "STRING", FALSE ); m_type = format.GetType(); m_id = format.GetId(); m_hasAtom = TRUE; - m_atom = format.GetAtom(); + m_atom = ((wxDataFormat &)format).GetAtom(); // const_cast } wxDataFormat::wxDataFormat( const GdkAtom atom ) @@ -192,7 +192,7 @@ size_t wxDataBroker::GetFormatCount() const return m_dataObjects.GetCount(); } -wxDataFormat &wxDataBroker::GetPreferredFormat() const +wxDataFormatId wxDataBroker::GetPreferredFormat() const { wxNode *node = m_dataObjects.Nth( m_preferred ); @@ -200,7 +200,7 @@ wxDataFormat &wxDataBroker::GetPreferredFormat() const wxDataObject* data_obj = (wxDataObject*)node->Data(); - return data_obj->GetFormat(); + return data_obj->GetFormat().GetType(); } wxDataFormat &wxDataBroker::GetNthFormat( size_t nth ) const