X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bde626ce30c80dd9409b7214f43e92c0f62447a0..ad667945478cda0c0a33e154f1d4403402cffb9e:/include/wx/variant.h diff --git a/include/wx/variant.h b/include/wx/variant.h index 6087c029dd..ff6fc93a43 100644 --- a/include/wx/variant.h +++ b/include/wx/variant.h @@ -376,10 +376,10 @@ expdecl wxVariant& operator << ( wxVariant &variant, const classname &value )\ return variant;\ } -// implements a wxVariantData-derived class using for the Eq() method the operator== -// which must have been provided by "classname" +// implements a wxVariantData-derived class using for the Eq() method the +// operator== which must have been provided by "classname" #define IMPLEMENT_VARIANT_OBJECT_EXPORTED(classname,expdecl) \ -IMPLEMENT_VARIANT_OBJECT_EXPORTED_NO_EQ(classname,expdecl) \ +IMPLEMENT_VARIANT_OBJECT_EXPORTED_NO_EQ(classname,wxEMPTY_PARAMETER_VALUE expdecl) \ \ bool classname##VariantData::Eq(wxVariantData& data) const \ {\ @@ -393,8 +393,10 @@ bool classname##VariantData::Eq(wxVariantData& data) const \ // implements a wxVariantData-derived class using for the Eq() method a shallow // comparison (through wxObject::IsSameAs function) +#define IMPLEMENT_VARIANT_OBJECT_SHALLOWCMP(classname) \ + IMPLEMENT_VARIANT_OBJECT_EXPORTED_SHALLOWCMP(classname, wxEMPTY_PARAMETER_VALUE) #define IMPLEMENT_VARIANT_OBJECT_EXPORTED_SHALLOWCMP(classname,expdecl) \ -IMPLEMENT_VARIANT_OBJECT_EXPORTED_NO_EQ(classname,expdecl) \ +IMPLEMENT_VARIANT_OBJECT_EXPORTED_NO_EQ(classname,wxEMPTY_PARAMETER_VALUE expdecl) \ \ bool classname##VariantData::Eq(wxVariantData& data) const \ {\