X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/da1ed74c85f53a75a193c7dcbd2013aa266a222c..5b88a837ba75928cd3835a6b97ae2bf5ad983a6e:/interface/wx/variant.h?ds=sidebyside diff --git a/interface/wx/variant.h b/interface/wx/variant.h index 3da7997746..84e67c2556 100644 --- a/interface/wx/variant.h +++ b/interface/wx/variant.h @@ -160,12 +160,12 @@ public: /** Constructs a variant from a wxDateTime. */ - wxVariant(wxDateTime& val, const wxString& name = wxEmptyString); + wxVariant(const wxDateTime& val, const wxString& name = wxEmptyString); /** Constructs a variant from a wxArrayString. */ - wxVariant(wxArrayString& val, const wxString& name = wxEmptyString); + wxVariant(const wxArrayString& val, const wxString& name = wxEmptyString); /** Destructor. @@ -266,7 +266,7 @@ public: /** Returns the character value. */ - wxChar GetChar() const; + wxUniChar GetChar() const; /** Returns a pointer to the internal variant data. To take ownership of @@ -293,7 +293,7 @@ public: /** Returns a constant reference to the variant name. */ - const wxString GetName() const; + const wxString& GetName() const; /** Gets the string value. @@ -321,6 +321,9 @@ public: /** Gets the void pointer value. + + Notice that this method can be used for null objects (i.e. those for + which IsNull() returns @true) and will return @NULL for them. */ void* GetVoidPtr() const; @@ -384,9 +387,9 @@ public: bool operator !=(const wxString& value) const; bool operator !=(const wxChar* value) const; bool operator !=(wxChar value) const; - bool operator !=(const long value) const; - bool operator !=(const bool value) const; - bool operator !=(const double value) const; + bool operator !=(long value) const; + bool operator !=(bool value) const; + bool operator !=(double value) const; bool operator !=(void* value) const; bool operator !=(wxObject* value) const; bool operator !=(const wxVariantList& value) const; @@ -404,9 +407,9 @@ public: void operator =(const wxString& value); void operator =(const wxChar* value); void operator =(wxChar value); - void operator =(const long value); - void operator =(const bool value); - void operator =(const double value); + void operator =(long value); + void operator =(bool value); + void operator =(double value); void operator =(void* value); void operator =(wxObject* value); void operator =(const wxVariantList& value); @@ -422,9 +425,9 @@ public: bool operator ==(const wxString& value) const; bool operator ==(const wxChar* value) const; bool operator ==(wxChar value) const; - bool operator ==(const long value) const; - bool operator ==(const bool value) const; - bool operator ==(const double value) const; + bool operator ==(long value) const; + bool operator ==(bool value) const; + bool operator ==(double value) const; bool operator ==(void* value) const; bool operator ==(wxObject* value) const; bool operator ==(const wxVariantList& value) const; @@ -536,7 +539,8 @@ public: /** Reads the data from @a stream. */ - bool Read(ostream& stream); + virtual bool Read(istream& stream); + /** Reads the data from @a string. */ @@ -558,7 +562,7 @@ public: // Global functions/macros // ============================================================================ -/** @ingroup group_funcmacro_rtti */ +/** @addtogroup group_funcmacro_rtti */ //@{ /**