mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-21 14:02:57 +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:
@@ -95,7 +95,7 @@ void FileNames::MakeNameUnique(wxArrayString &otherNames, wxFileName &newName)
|
||||
int i=2;
|
||||
wxString orig = newName.GetName();
|
||||
do {
|
||||
newName.SetName(wxString::Format(wxT("%s-%d"), orig.c_str(), i));
|
||||
newName.SetName(wxString::Format(wxT("%s-%d"), orig, i));
|
||||
i++;
|
||||
} while (otherNames.Index(newName.GetFullName(), false) >= 0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user