From 02e91807abdfac5398d9a939d3a264293f148e08 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sat, 2 May 2020 10:35:40 +0200 Subject: [PATCH] Avoid marking an empty string translatable (create issues with translation tools). Fix also a minor compil warning. --- common/dialogs/panel_setup_severities.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/dialogs/panel_setup_severities.cpp b/common/dialogs/panel_setup_severities.cpp index 6ab21e8c5e..699e982213 100644 --- a/common/dialogs/panel_setup_severities.cpp +++ b/common/dialogs/panel_setup_severities.cpp @@ -67,7 +67,7 @@ PANEL_SETUP_SEVERITIES::PANEL_SETUP_SEVERITIES( PAGED_DIALOG* aParent, RC_ITEM& wxPanel* radioPanel = new wxPanel( scrollWin ); wxBoxSizer* radioSizer = new wxBoxSizer( wxHORIZONTAL ); - for( size_t i = 0; i < severityCount; ++i ) + for( int i = 0; i < severityCount; ++i ) { m_buttonMap[ errorCode ][i] = new wxRadioButton( radioPanel, baseID + errorCode * 10 + i, @@ -86,7 +86,7 @@ PANEL_SETUP_SEVERITIES::PANEL_SETUP_SEVERITIES( PAGED_DIALOG* aParent, RC_ITEM& if( m_pinMapSpecialCase >= 0 ) { - wxString pinMapSeverities[] = { _( "From Pin Conflicts Map" ), _( "" ), _( "Ignore" ) }; + wxString pinMapSeverities[] = { _( "From Pin Conflicts Map" ), wxT( "" ), _( "Ignore" ) }; int errorCode = m_pinMapSpecialCase; wxString msg = aDummyItem.GetErrorText( errorCode );