From: Vadim Zeitlin Date: Fri, 3 Nov 2006 21:25:59 +0000 (+0000) Subject: added IMPLEMENT_VARIANT_OBJECT_SHALLOWCMP(classname) macro for consistency X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/01df01eb197ae18576b05c5e19f5d42f2ca6611a added IMPLEMENT_VARIANT_OBJECT_SHALLOWCMP(classname) macro for consistency git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42995 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/variant.h b/include/wx/variant.h index 6087c029dd..3f92c4e234 100644 --- a/include/wx/variant.h +++ b/include/wx/variant.h @@ -376,8 +376,8 @@ 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) \ \ @@ -393,6 +393,8 @@ 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) \ \