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:
@@ -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
|
||||
(
|
||||
|
Reference in New Issue
Block a user