X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/034be8882cc091cf8ca1ccdf307190ac73adfe54..f377a3b58c509ceba8c9335dbe45d100cca615ad:/src/gtk1/control.cpp?ds=sidebyside diff --git a/src/gtk1/control.cpp b/src/gtk1/control.cpp index ce57fdf9a6..69e7a9a0b2 100644 --- a/src/gtk1/control.cpp +++ b/src/gtk1/control.cpp @@ -39,14 +39,14 @@ void wxControl::Command( wxCommandEvent &WXUNUSED(event) ) void wxControl::SetLabel( const wxString &label ) { - m_label = ""; - for ( const char *pc = label; *pc != '\0'; pc++ ) + m_label = _T(""); + for ( const wxChar *pc = label; *pc != _T('\0'); pc++ ) { - if ( *pc == '&' ) + if ( *pc == _T('&') ) { pc++; // skip it #if 0 // it would be unused anyhow for now - kbd interface not done yet - if ( *pc != '&' ) m_chAccel = *pc; + if ( *pc != _T('&') ) m_chAccel = *pc; #endif } m_label << *pc;