]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/variant.h
removing outdated code
[wxWidgets.git] / include / wx / variant.h
index 47922536296d8d1dd1aa55053c8ddcb193aa03e5..318a483144a81c0441a349632a8a46c8d53b110d 100644 (file)
@@ -570,7 +570,11 @@ bool classname##VariantData::Eq(wxVariantData& data) const \
                   var.GetWxObjectPtr() : NULL));
 
 // Replacement for using wxDynamicCast on a wxVariantData object
-#define wxDynamicCastVariantData(data, classname) dynamic_cast<classname*>(data)
+#ifndef wxNO_RTTI
+    #define wxDynamicCastVariantData(data, classname) dynamic_cast<classname*>(data)
+#endif
+
+#define wxStaticCastVariantData(data, classname) static_cast<classname*>(data)
 
 extern wxVariant WXDLLIMPEXP_BASE wxNullVariant;