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

@@ -293,7 +293,7 @@ bool wxHtmlHelpData::LoadMSProject(wxHtmlBookRecord *book, wxFileSystem& fsys,
}
else
{
wxLogError(_("Cannot open contents file: %s"), contentsfile.c_str());
wxLogError(_("Cannot open contents file: %s"), contentsfile);
}
f = ( indexfile.empty() ? NULL : fsys.OpenFile(indexfile) );
@@ -307,7 +307,7 @@ bool wxHtmlHelpData::LoadMSProject(wxHtmlBookRecord *book, wxFileSystem& fsys,
}
else if (!indexfile.empty())
{
wxLogError(_("Cannot open index file: %s"), indexfile.c_str());
wxLogError(_("Cannot open index file: %s"), indexfile);
}
return true;
}
@@ -657,7 +657,7 @@ bool wxHtmlHelpData::AddBook(const wxString& book)
fi = fsys.OpenFile(book);
if (fi == NULL)
{
wxLogError(_("Cannot open HTML help book: %s"), book.c_str());
wxLogError(_("Cannot open HTML help book: %s"), book);
return false;
}
fsys.ChangePathTo(book);