diff --git a/include/wx/xti.h b/include/wx/xti.h index 4a82a413be..4080092cb8 100644 --- a/include/wx/xti.h +++ b/include/wx/xti.h @@ -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 wxxVariant( T data , const wxString& name = wxT("") ) : + template wxxVariant( const T& data , const wxString& name = wxT("") ) : m_data(new wxxVariantDataT(data) ), m_name(name) {} ~wxxVariant() { delete m_data ; }