X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4fd899b671b25d3671e3fceb1b59f8edd9113af9..03773e400b6ff2692f2a9ba045d652c3b7b7109d:/include/wx/os2/dataform.h?ds=sidebyside diff --git a/include/wx/os2/dataform.h b/include/wx/os2/dataform.h index 18336bb540..b28d059403 100644 --- a/include/wx/os2/dataform.h +++ b/include/wx/os2/dataform.h @@ -16,7 +16,7 @@ class wxDataFormat { public: wxDataFormat(unsigned int uFormat = wxDF_INVALID) { m_uFormat = uFormat; } - wxDataFormat(const wxChar* zFormat) { SetId(zFormat); } + wxDataFormat(const wxString& zFormat) { SetId(zFormat); } wxDataFormat& operator=(unsigned int uFormat) { m_uFormat = uFormat; return(*this); } wxDataFormat& operator=(const wxDataFormat& rFormat) {m_uFormat = rFormat.m_uFormat; return(*this); } @@ -42,7 +42,7 @@ public: // application-specific formats // wxString GetId(void) const; - void SetId(const wxChar* pId); + void SetId(const wxString& pId); private: unsigned int m_uFormat;