X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e6b2edfc836c8867cb868e73d35f36a6e68f943..c1ea6afb878385e2586007fc85fef05c2c722a2b:/include/wx/variant.h diff --git a/include/wx/variant.h b/include/wx/variant.h index 89cb6c437d..73e675eaef 100644 --- a/include/wx/variant.h +++ b/include/wx/variant.h @@ -186,14 +186,12 @@ public: long GetLong() const; // bool -#ifdef HAVE_BOOL wxVariant(bool val, const wxString& name = wxEmptyString); bool operator== (bool value) const; bool operator!= (bool value) const; void operator= (bool value) ; inline operator bool () const { return GetBool(); } bool GetBool() const ; -#endif // wxDateTime #if wxUSE_DATETIME @@ -212,8 +210,8 @@ public: wxVariant(const char* val, const wxString& name = wxEmptyString); wxVariant(const wchar_t* val, const wxString& name = wxEmptyString); wxVariant(const wxCStrData& val, const wxString& name = wxEmptyString); - wxVariant(const wxCharBuffer& val, const wxString& name = wxEmptyString); - wxVariant(const wxWCharBuffer& val, const wxString& name = wxEmptyString); + wxVariant(const wxScopedCharBuffer& val, const wxString& name = wxEmptyString); + wxVariant(const wxScopedWCharBuffer& val, const wxString& name = wxEmptyString); bool operator== (const wxString& value) const; bool operator!= (const wxString& value) const; @@ -227,7 +225,7 @@ public: wxVariant& operator=(const wxCStrData& value) { return *this = value.AsString(); } template - wxVariant& operator=(const wxCharTypeBuffer& value) + wxVariant& operator=(const wxScopedCharTypeBuffer& value) { return *this = value.data(); } inline operator wxString () const { return MakeString(); }