1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-25 15:53:52 +02:00

Use type aliases FilePath, FilePaths...

... for wxString and wxArrayStringEx, holding file paths (absolute or relative,
directory or plain file); to be replaced later with different types

(not yet using std::vector, becase of some uses of wxArrayString::Index with
two arguments)
This commit is contained in:
Paul Licameli
2019-03-07 14:50:22 -05:00
parent 485b6bb425
commit a30000cf74
80 changed files with 371 additions and 342 deletions

View File

@@ -616,7 +616,7 @@ bool Exporter::GetFilename()
}
}
const auto &ext = mFilename.GetExt();
auto ext = mFilename.GetExt();
defext = mPlugins[mFormat]->GetExtension(mSubFormat).Lower();
//

View File

@@ -638,7 +638,7 @@ ProgressResult ExportMultiple::ExportMultipleByLabel(bool byName,
// Figure out how many channels we should export.
auto channels = mTracks->GetNumExportChannels(false);
wxArrayString otherNames; // keep track of file names we will use, so we
FilePaths otherNames; // keep track of file names we will use, so we
// don't duplicate them
ExportKit setting; // the current batch of settings
setting.destfile.SetPath(mDir->GetValue());
@@ -754,7 +754,7 @@ ProgressResult ExportMultiple::ExportMultipleByTrack(bool byName,
bool tagsPrompt = mProject->GetShowId3Dialog();
int l = 0; // track counter
auto ok = ProgressResult::Success;
wxArrayString otherNames;
FilePaths otherNames;
std::vector<ExportKit> exportSettings; // dynamic array we will use to store the
// settings needed to do the exports with in
exportSettings.reserve(mNumWaveTracks); // Allocate some guessed space to use.

View File

@@ -127,7 +127,7 @@ private:
bool mInitialized;
// List of file actually exported
wxArrayString mExported;
FilePaths mExported;
wxChoice *mFormat; /**< Drop-down list of export formats
(combinations of plug-in and subformat) */