X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2c3a10641d965a0fdc9834258e27ce927842c2a0..6981afa11fe3a0445e1612d4b1c444340c38019b:/src/common/variant.cpp?ds=sidebyside 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)