X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8a126fcc3438c6b2693090e8c97761fa12d8ca7a..0aca1ded9ce90a6d5f560c2617df1ef5089c789b:/src/gtk/dataobj.cpp diff --git a/src/gtk/dataobj.cpp b/src/gtk/dataobj.cpp index 913ee2eca3..cbcce96e5f 100644 --- a/src/gtk/dataobj.cpp +++ b/src/gtk/dataobj.cpp @@ -44,7 +44,7 @@ wxDataFormat::wxDataFormat( wxDataType type ) SetType( type ); } -wxDataFormat::wxDataFormat( const char *id ) +wxDataFormat::wxDataFormat( const wxChar *id ) { if (!g_textAtom) g_textAtom = gdk_atom_intern( "STRING", FALSE ); SetId( id ); @@ -127,7 +127,7 @@ wxString wxDataFormat::GetId() const return m_id; } -void wxDataFormat::SetId( const char *id ) +void wxDataFormat::SetId( const wxChar *id ) { m_type = wxDF_PRIVATE; m_id = id; @@ -341,7 +341,7 @@ size_t wxTextDataObject::GetSize() const void wxTextDataObject::WriteString( const wxString &str, void *dest ) const { - memcpy( dest, m_data.c_str(), GetSize() ); + memcpy( dest, str.mb_str(), str.Len()+1 ); } // ---------------------------------------------------------------------------- @@ -368,7 +368,7 @@ wxString wxFileDataObject::GetFiles() const void wxFileDataObject::WriteData( void *dest ) const { - memcpy( dest, m_files.c_str(), GetSize() ); + memcpy( dest, m_files.mbc_str(), GetSize() ); } size_t wxFileDataObject::GetSize() const @@ -427,7 +427,7 @@ IMPLEMENT_DYNAMIC_CLASS( wxPrivateDataObject, wxDataObject ) wxPrivateDataObject::wxPrivateDataObject() { - m_id = "application/"; + m_id = _T("application/"); m_id += wxTheApp->GetAppName(); m_format.SetId( m_id );