]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/variant.cpp
Removed #include <typeinfo> (since C++ RTTI is no longer used)
[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()));
 }