mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-22 06:22:58 +02:00
Remove needless uses of wxString::c_str() in wxString::Format...
... and similar wx "variadics," which all treat wxString smartly enough that you don't need this. Don't need c_str either to convert wxString to const wxChar * because wxString has a conversion operator that does the same.
This commit is contained in:
@@ -104,17 +104,17 @@ bool ExportCommand::Apply(CommandExecutionContext context)
|
||||
|
||||
bool exportSuccess = exporter.Process(context.GetProject(),
|
||||
std::max(0L, numChannels),
|
||||
extension.c_str(), filename,
|
||||
extension, filename,
|
||||
selection, t0, t1);
|
||||
|
||||
if (exportSuccess)
|
||||
{
|
||||
Status(wxString::Format(wxT("Exported to %s format: %s"),
|
||||
extension.c_str(), filename.c_str()));
|
||||
extension, filename));
|
||||
return true;
|
||||
}
|
||||
|
||||
Error(wxString::Format(wxT("Could not export to %s format!"), extension.c_str()));
|
||||
Error(wxString::Format(wxT("Could not export to %s format!"), extension));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user