use standard functions for BSTR handling instead of doing it ourselves incorrectly (fixed patch 1829152)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49882 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -208,24 +208,21 @@ class WXDLLEXPORT wxBasicString
|
||||
{
|
||||
public:
|
||||
// ctors & dtor
|
||||
wxBasicString(const char *sz);
|
||||
wxBasicString(const wxString& str);
|
||||
wxBasicString(const wxBasicString& bstr);
|
||||
~wxBasicString();
|
||||
|
||||
void Init(const char* sz);
|
||||
wxBasicString& operator=(const wxBasicString& bstr);
|
||||
|
||||
// accessors
|
||||
// just get the string
|
||||
operator BSTR() const { return m_wzBuf; }
|
||||
// retrieve a copy of our string - caller must SysFreeString() it later!
|
||||
BSTR Get() const { return SysAllocString(m_wzBuf); }
|
||||
// just get the string
|
||||
operator BSTR() const { return m_bstrBuf; }
|
||||
// retrieve a copy of our string - caller must SysFreeString() it later!
|
||||
BSTR Get() const { return SysAllocString(m_bstrBuf); }
|
||||
|
||||
private:
|
||||
// @@@ not implemented (but should be)
|
||||
wxBasicString(const wxBasicString&);
|
||||
wxBasicString& operator=(const wxBasicString&);
|
||||
|
||||
OLECHAR *m_wzBuf; // actual string
|
||||
// actual string
|
||||
BSTR m_bstrBuf;
|
||||
};
|
||||
|
||||
#if wxUSE_VARIANT
|
||||
|
Reference in New Issue
Block a user