1
0
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:
Paul Licameli
2016-02-22 00:17:20 -05:00
parent 2d7e21536e
commit f00144e9a5
15 changed files with 91 additions and 80 deletions

View File

@@ -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;