changing wxxVariant signature

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23032 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2003-08-19 19:44:15 +00:00
parent d56cc7b1bc
commit 12a5e73be6

View File

@ -424,7 +424,7 @@ public :
wxxVariant( wxxVariantData* data , const wxString& name = wxT("") ) : m_data(data) , m_name(name) {}
wxxVariant( const wxxVariant &d ) { if ( d.m_data ) m_data = d.m_data->Clone() ; else m_data = NULL ; m_name = d.m_name ; }
template<typename T> wxxVariant( T data , const wxString& name = wxT("") ) :
template<typename T> wxxVariant( const T& data , const wxString& name = wxT("") ) :
m_data(new wxxVariantDataT<T>(data) ), m_name(name) {}
~wxxVariant() { delete m_data ; }