]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/variant.cpp
compilation fix (not all paths returned a value)
[wxWidgets.git] / src / common / variant.cpp
index 7994a92651673a8e1a81b69a108d01c10d4393c6..7b2f9dd943696b924ddb4464a021d9ddfb06e332 100644 (file)
@@ -1167,6 +1167,20 @@ wxVariant::wxVariant(const wxList& val, const wxString& name) // List of variant
     m_name = name;
 }
 
+wxVariant::wxVariant( void* val, const wxString& name)
+{
+   m_data = new wxVariantDataVoidPtr(val);
+   m_name = name;
+}
+
+#if wxUSE_DATETIME
+wxVariant::wxVariant(const wxDateTime& val, const wxString& name) // Date
+{
+       m_data = new wxVariantDataDateTime(val);
+       m_name = name;
+}
+#endif // wxUSE_DATETIME    
+
 #if wxUSE_ODBC
 wxVariant::wxVariant(const TIME_STRUCT* valptr, const wxString& name) // Date
 {