X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/07502d7351ab56770752ad01ee28af497cf2ab9c..13874b5c7f59b6c695672042fd3b9f283707318f:/include/wx/variant.h diff --git a/include/wx/variant.h b/include/wx/variant.h index 0e3e71f195..37ecf447d3 100644 --- a/include/wx/variant.h +++ b/include/wx/variant.h @@ -326,8 +326,8 @@ private: DECLARE_VARIANT_OBJECT_EXPORTED(classname,EMPTY_PARAMETER_VALUE) #define DECLARE_VARIANT_OBJECT_EXPORTED(classname,expdecl) \ -classname& expdecl operator << ( classname &object, const wxVariant &variant ); \ -wxVariant& expdecl operator << ( wxVariant &variant, const classname &object ); +expdecl classname& operator << ( classname &object, const wxVariant &variant ); \ +expdecl wxVariant& operator << ( wxVariant &variant, const classname &object ); #define IMPLEMENT_VARIANT_OBJECT(classname) \ IMPLEMENT_VARIANT_OBJECT_EXPORTED(classname,EMPTY_PARAMETER_VALUE) @@ -374,7 +374,7 @@ wxClassInfo* classname##VariantData::GetValueClassInfo()\ return m_value.GetClassInfo();\ }\ \ -classname& expdecl operator << ( classname &value, const wxVariant &variant )\ +expdecl classname& operator << ( classname &value, const wxVariant &variant )\ {\ wxASSERT( wxIsKindOf( variant.GetData(), classname##VariantData ) );\ \ @@ -383,7 +383,7 @@ classname& expdecl operator << ( classname &value, const wxVariant &variant )\ return value;\ }\ \ -wxVariant& expdecl operator << ( wxVariant &variant, const classname &value )\ +expdecl wxVariant& operator << ( wxVariant &variant, const classname &value )\ {\ classname##VariantData *data = new classname##VariantData( value );\ variant.SetData( data );\