]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/variant.cpp
Added wxDataViewBitmapCell
[wxWidgets.git] / src / common / variant.cpp
index 2ebfcff9d82cb5a3b56c488ed178cd47c5560120..b17b2c1f667ffde06fbb09e6c1ba70f530a8b89b 100644 (file)
@@ -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
 {