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:
@@ -131,7 +131,7 @@ wxString wxHtmlFilterHTML::ReadFile(const wxFSFile& file) const
|
||||
|
||||
if (s == NULL)
|
||||
{
|
||||
wxLogError(_("Cannot open HTML document: %s"), file.GetLocation().c_str());
|
||||
wxLogError(_("Cannot open HTML document: %s"), file.GetLocation());
|
||||
return wxEmptyString;
|
||||
}
|
||||
|
||||
@@ -170,7 +170,7 @@ wxString wxHtmlFilterHTML::ReadFile(const wxFSFile& file) const
|
||||
{
|
||||
wxString hdr;
|
||||
wxString mime = file.GetMimeType();
|
||||
hdr.Printf(wxT("<meta http-equiv=\"Content-Type\" content=\"%s\">"), mime.c_str());
|
||||
hdr.Printf(wxT("<meta http-equiv=\"Content-Type\" content=\"%s\">"), mime);
|
||||
return hdr+doc;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user