Remove redundant GetValueRef() from wxVariantData impl macro
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55769 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
472137baeb
commit
a48fcef3e8
@ -522,16 +522,14 @@ public:\
|
||||
classname##VariantData( const classname &value ) { m_value = value; } \
|
||||
\
|
||||
classname &GetValue() { return m_value; } \
|
||||
\
|
||||
const classname &GetValue() const { return m_value; } \
|
||||
\
|
||||
virtual bool Eq(wxVariantData& data) const; \
|
||||
\
|
||||
virtual wxString GetType() const; \
|
||||
\
|
||||
virtual wxVariantData* Clone() const { return new classname##VariantData(m_value); } \
|
||||
\
|
||||
classname& GetValueRef() { return m_value; } \
|
||||
\
|
||||
const classname& GetValueRef() const { return m_value; } \
|
||||
\
|
||||
protected:\
|
||||
classname m_value; \
|
||||
@ -561,13 +559,13 @@ expdecl classname& classname##RefFromVariant( wxVariant& variant ) \
|
||||
{ \
|
||||
wxASSERT( variant.GetType() == #classname );\
|
||||
classname##VariantData *data = (classname##VariantData*) variant.GetData();\
|
||||
return data->GetValueRef();\
|
||||
return data->GetValue();\
|
||||
} \
|
||||
expdecl const classname& classname##RefFromVariant( const wxVariant& variant ) \
|
||||
{ \
|
||||
wxASSERT( variant.GetType() == #classname );\
|
||||
classname##VariantData *data = (classname##VariantData*) variant.GetData();\
|
||||
return data->GetValueRef();\
|
||||
return data->GetValue();\
|
||||
}
|
||||
|
||||
// implements a wxVariantData-derived class using for the Eq() method the
|
||||
|
Loading…
Reference in New Issue
Block a user