Remove unnecessary c_str() calls in wxLocale code

Pass wxString directly to wxLogWarning(), there is no need for c_str()
since wx 3.0 any more.
This commit is contained in:
Vadim Zeitlin 2017-07-14 19:00:12 +02:00
parent 9104e6fc9a
commit 1003cf3e92

View File

@ -497,7 +497,7 @@ bool wxLocale::Init(int language, int flags)
const char *retloc = "C";
if ( info->WinLang == 0 )
{
wxLogWarning(wxS("Locale '%s' not supported by OS."), name.c_str());
wxLogWarning(wxS("Locale '%s' not supported by OS."), name);
// retloc already set to "C"
}
else // language supported by Windows
@ -567,7 +567,7 @@ bool wxLocale::Init(int language, int flags)
#ifndef WX_NO_LOCALE_SUPPORT
if ( !ret )
{
wxLogWarning(_("Cannot set locale to language \"%s\"."), name.c_str());
wxLogWarning(_("Cannot set locale to language \"%s\"."), name);
// As we failed to change locale, there is no need to restore the
// previous one: it's still valid.