Remove all wxS() macros from samples

The use of wxS() is an optimization which can be used to avoid an
implicit conversion from narrow to wide strings, but such optimizations
are not really needed in the samples and just make their code less
readable, so remove them.

Closes https://github.com/wxWidgets/wxWidgets/pull/956
This commit is contained in:
Blake Eryx
2018-10-01 13:55:42 +02:00
committed by Vadim Zeitlin
parent 761f9f74fc
commit 4fb39beae1
11 changed files with 75 additions and 75 deletions

View File

@@ -468,12 +468,12 @@ void TextWidgetsPage::CreateContent()
static const wxString halign[] =
{
wxS("left"),
wxS("centre"),
wxS("right"),
"left",
"centre",
"right",
};
m_radioAlign = new wxRadioBox(this, wxID_ANY, wxS("&Text alignment"),
m_radioAlign = new wxRadioBox(this, wxID_ANY, "&Text alignment",
wxDefaultPosition, wxDefaultSize,
WXSIZEOF(halign), halign, 1);
sizerLeft->Add(m_radioAlign, 0, wxGROW | wxALL, 5);
@@ -747,7 +747,7 @@ void TextWidgetsPage::CreateText()
flags |= wxTE_RIGHT;
break;
default:
wxFAIL_MSG( wxS("unexpected alignment style radio box selection") );
wxFAIL_MSG( "unexpected alignment style radio box selection" );
}
#ifdef __WXMSW__
@@ -1033,7 +1033,7 @@ void TextWidgetsPage::OnCheckOrRadioBox(wxCommandEvent& event)
flags |= wxTE_RIGHT;
break;
default:
wxFAIL_MSG( wxS("unexpected alignment style radio box selection") );
wxFAIL_MSG( "unexpected alignment style radio box selection" );
return;
}