From 12a5e73be6534c23b9f941cf09ec38f345268e38 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Tue, 19 Aug 2003 19:44:15 +0000 Subject: [PATCH] changing wxxVariant signature git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23032 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/xti.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ; }