SetType( type );
}
-wxDataFormat::wxDataFormat( const wxChar *id )
-{
- PrepareFormats();
- SetId( id );
-}
-
wxDataFormat::wxDataFormat( const wxString &id )
{
PrepareFormats();
m_type = wxDF_PRIVATE;
}
-void wxDataFormat::SetId( const wxChar *id )
+void wxDataFormat::SetId( const wxString& id )
{
PrepareFormats();
m_type = wxDF_PRIVATE;
- wxString tmp( id );
m_format = XInternAtom( wxGlobalDisplay(),
- tmp.mbc_str(), False );
+ id.mbc_str(), False );
}
void wxDataFormat::PrepareFormats()
bool wxBitmapDataObject::GetDataHere(void* buf) const
{
- if( !GetBitmap().Ok() )
+ if( !GetBitmap().IsOk() )
return false;
(*(Pixmap*)buf) = (Pixmap)GetBitmap().GetDrawable();