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:
@@ -870,7 +870,7 @@ long wxExecute(const wxString& cmd, int flags, wxProcess *handler,
|
||||
}
|
||||
#endif // wxUSE_STREAMS
|
||||
|
||||
wxLogSysError(_("Execution of command '%s' failed"), command.c_str());
|
||||
wxLogSysError(_("Execution of command '%s' failed"), command);
|
||||
|
||||
return flags & wxEXEC_SYNC ? -1 : 0;
|
||||
}
|
||||
@@ -1005,7 +1005,7 @@ long wxExecute(const wxString& cmd, int flags, wxProcess *handler,
|
||||
if ( !ddeOK )
|
||||
{
|
||||
wxLogDebug(wxT("Failed to send DDE request to the process \"%s\"."),
|
||||
cmd.c_str());
|
||||
cmd);
|
||||
}
|
||||
}
|
||||
#endif // wxUSE_IPC
|
||||
|
Reference in New Issue
Block a user