mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-23 09:20:16 +01: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:
@@ -402,7 +402,7 @@ wxString LabelDialog::TrackName(int & index, const wxString &dflt)
|
||||
// Generate a NEW track name if the passed index is out of range
|
||||
if (index < 1 || index >= (int)mTrackNames.GetCount()) {
|
||||
index = mTrackNames.GetCount();
|
||||
mTrackNames.Add(wxString::Format(wxT("%d - %s"), index, dflt.c_str()));
|
||||
mTrackNames.Add(wxString::Format(wxT("%d - %s"), index, dflt));
|
||||
}
|
||||
|
||||
// Return the track name
|
||||
@@ -638,7 +638,7 @@ void LabelDialog::OnExport(wxCommandEvent & WXUNUSED(event))
|
||||
fName = FileNames::SelectFile(FileNames::Operation::Export,
|
||||
_("Export Labels As:"),
|
||||
wxEmptyString,
|
||||
fName.c_str(),
|
||||
fName,
|
||||
wxT("txt"),
|
||||
wxT("*.txt"),
|
||||
wxFD_SAVE | wxFD_OVERWRITE_PROMPT | wxRESIZE_BORDER,
|
||||
|
||||
Reference in New Issue
Block a user