]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/dataobj.cpp
Better sorting example and better default
[wxWidgets.git] / src / os2 / dataobj.cpp
index c07595d1561cced39a15f7ace38fcda5da64cb5e..81939cf4295c9588cd961e24333e0d2408c258b2 100644 (file)
 
 #if wxUSE_DATAOBJ
 
+#include "wx/dataobj.h"
+
 #ifndef WX_PRECOMP
     #include "wx/intl.h"
     #include "wx/log.h"
     #include "wx/image.h"
 #endif
 
-#include "wx/dataobj.h"
 #include "wx/mstream.h"
 
 #include "wx/os2/private.h"
@@ -56,11 +57,11 @@ wxString wxDataFormat::GetId() const
 } // end of wxDataFormat::GetId()
 
 void wxDataFormat::SetId (
-  const wxChar*                     zId
+  const wxString&                     zId
 )
 {
     m_uFormat = ::WinAddAtom( ::WinQuerySystemAtomTable()
-                             ,(PSZ)zId
+                             ,zId.char_str()
                             );
 } // end of wxDataFormat::SetId