]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/variant.cpp
don't compile in wx hash code unless we really use it (#9532:12)
[wxWidgets.git] / src / common / variant.cpp
index b71f67801d286d0520a55e838fc5ababd0fe0cb9..42c9742966a9e51bd8f1c01c5caf0aa2cc5effd0 100644 (file)
@@ -122,6 +122,9 @@ bool wxVariant::operator== (const wxVariant& variant) const
     if (IsNull() || variant.IsNull())
         return (IsNull() == variant.IsNull());
 
+    if (GetType() != variant.GetType())
+        return false;
+
     return (GetData()->Eq(* variant.GetData()));
 }