]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/variant.cpp
Applied patch [ 619386 ] uxtheme.dll support
[wxWidgets.git] / src / common / variant.cpp
index c6a70f2a33c74f08411f48e8531d63d10f1a6670..7b2f9dd943696b924ddb4464a021d9ddfb06e332 100644 (file)
     #endif
 #endif
 
+#if defined(__MWERKS__) && __MSL__ >= 0x6000
+using namespace std ;
+#endif
+
 #if wxUSE_STREAMS
 #include "wx/stream.h"
 #include "wx/txtstrm.h"
@@ -1163,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
 {