Remove unnecessary c_str() from wx var arg functions arguments

Using c_str() for arguments to wxString::Printf(), Format() and
wxLogXXX() is useless since wx 2.9 days, so simply remove them.

No real changes, this is just a (long due) cleanup.
This commit is contained in:
Vadim Zeitlin
2021-07-04 14:28:55 +01:00
parent 723265f9ef
commit f31a745909
50 changed files with 237 additions and 243 deletions

View File

@@ -193,11 +193,11 @@ void wxFontsManager::AddFontsFromDir(const wxString& indexFile)
if ( !fn.FileExists() )
{
wxLogWarning(_("Fonts index file %s disappeared while loading fonts."),
indexFile.c_str());
indexFile);
return;
}
wxLogTrace("font", "adding fonts from %s", dir.c_str());
wxLogTrace("font", "adding fonts from %s", dir);
wxFileConfig cfg(wxEmptyString, wxEmptyString,
indexFile, wxEmptyString,
@@ -231,9 +231,9 @@ void wxFontsManager::AddFont(const wxString& dir,
const wxString& name,
wxFileConfig& cfg)
{
wxLogTrace("font", "adding font '%s'", name.c_str());
wxLogTrace("font", "adding font '%s'", name);
wxConfigPathChanger ch(&cfg, wxString::Format("/%s/", name.c_str()));
wxConfigPathChanger ch(&cfg, wxString::Format("/%s/", name));
AddBundle
(