Added wxVariant's =, == and != operators for wxObject*
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41472 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1628,6 +1628,23 @@ void wxVariant::operator= (void* value)
|
||||
}
|
||||
}
|
||||
|
||||
bool wxVariant::operator== (wxObject* value) const
|
||||
{
|
||||
return (value == ((wxVariantDataWxObjectPtr*)GetData())->GetValue());
|
||||
}
|
||||
|
||||
bool wxVariant::operator!= (wxObject* value) const
|
||||
{
|
||||
return (!((*this) == (void*) value));
|
||||
}
|
||||
|
||||
void wxVariant::operator= (wxObject* value)
|
||||
{
|
||||
if (m_data)
|
||||
delete m_data;
|
||||
m_data = new wxVariantDataWxObjectPtr(value);
|
||||
}
|
||||
|
||||
#if wxUSE_DATETIME
|
||||
bool wxVariant::operator== (const wxDateTime& value) const
|
||||
{
|
||||
|
Reference in New Issue
Block a user