]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/variant.cpp
Warning and build fixes focused with Borland and Watcom.
[wxWidgets.git] / src / common / variant.cpp
index 4600c1a208ffac9dd4330a364d01672675370d94..bbfd8f4688d5a0d7880970ccc1a708c7cc528418 100644 (file)
@@ -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)