From 52e812428f8d5b4e354482449aeb192f22ce50fd Mon Sep 17 00:00:00 2001 From: Ryan Norton Date: Tue, 8 Feb 2005 03:25:05 +0000 Subject: [PATCH] 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 --- src/common/variant.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- 2.50.0