X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/31907d03078c41ac09b2ff36267e980c57410f72..eaf6274cc01dec5faebd88d9cd06c17a462d32c5:/src/common/variant.cpp diff --git a/src/common/variant.cpp b/src/common/variant.cpp index 7994a92651..7b2f9dd943 100644 --- a/src/common/variant.cpp +++ b/src/common/variant.cpp @@ -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 {