mirror of
https://github.com/cookiengineer/audacity
synced 2026-01-02 22:27:10 +01:00
Sweep for filename copying: various
This commit is contained in:
@@ -413,7 +413,7 @@ bool BatchCommands::IsMono()
|
||||
|
||||
wxString BatchCommands::BuildCleanFileName(const wxString &fileName, const wxString &extension)
|
||||
{
|
||||
wxFileName newFileName(fileName);
|
||||
const wxFileName newFileName{ fileName };
|
||||
wxString justName = newFileName.GetName();
|
||||
wxString pathName = newFileName.GetPath(wxPATH_GET_VOLUME | wxPATH_GET_SEPARATOR);
|
||||
|
||||
@@ -776,9 +776,10 @@ wxArrayString BatchCommands::GetNames()
|
||||
wxDir::GetAllFiles(FileNames::ChainDir(), &files, wxT("*.txt"), wxDIR_FILES);
|
||||
size_t i;
|
||||
|
||||
wxFileName ff;
|
||||
for (i = 0; i < files.GetCount(); i++) {
|
||||
wxFileName f(files[i]);
|
||||
names.Add(f.GetName());
|
||||
ff = (files[i]);
|
||||
names.Add(ff.GetName());
|
||||
}
|
||||
|
||||
return names;
|
||||
|
||||
Reference in New Issue
Block a user