#ifndef WX_PRECOMP
#include "wx/app.h"
+ #include "wx/utils.h"
#endif
-#include "wx/utils.h"
-
#ifdef __VMS__
#pragma message disable nosimpint
#endif
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()