SetType( type );
}
-wxDataFormat::wxDataFormat( const char *id )
+wxDataFormat::wxDataFormat( const wxChar *id )
{
if (!g_textAtom) g_textAtom = gdk_atom_intern( "STRING", FALSE );
SetId( id );
return m_id;
}
-void wxDataFormat::SetId( const char *id )
+void wxDataFormat::SetId( const wxChar *id )
{
m_type = wxDF_PRIVATE;
m_id = id;
void wxTextDataObject::WriteString( const wxString &str, void *dest ) const
{
- memcpy( dest, m_data.c_str(), GetSize() );
+ memcpy( dest, m_data.mbc_str(), GetSize() );
}
// ----------------------------------------------------------------------------
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
wxPrivateDataObject::wxPrivateDataObject()
{
- m_id = "application/";
+ m_id = _T("application/");
m_id += wxTheApp->GetAppName();
m_format.SetId( m_id );