From: Ryan Norton Date: Tue, 8 Feb 2005 03:25:05 +0000 (+0000) Subject: Duplicate impl of wxVariant == because GCC can't tell if one depreciated method is... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/52e812428f8d5b4e354482449aeb192f22ce50fd Duplicate impl of wxVariant == because GCC can't tell if one depreciated method is being used inside another git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31849 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/variant.cpp b/src/common/variant.cpp index 4600c1a208..bbfd8f4688 100644 --- a/src/common/variant.cpp +++ b/src/common/variant.cpp @@ -1558,7 +1558,10 @@ bool wxVariant::operator== (const wxStringList& value) const bool wxVariant::operator!= (const wxStringList& value) const { - return (!((*this) == value)); + wxASSERT_MSG( (GetType() == wxT("stringlist")), wxT("Invalid type for == operator") ); + + wxVariantDataStringList other(value); + return !(m_data->Eq(other)); } void wxVariant::operator= (const wxStringList& value)