1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-09 14:16:28 +01:00

Sweep unnecessary wxString copies: export

This commit is contained in:
Paul Licameli
2016-02-22 21:17:04 -05:00
parent d21c0aa478
commit 83e8a80f61
11 changed files with 31 additions and 69 deletions

View File

@@ -54,7 +54,7 @@ private:
* labels that define them (true), or just numbered (false).
* @param prefix The string used to prefix the file number if files are being
* numbered rather than named */
int ExportMultipleByLabel(bool byName, wxString prefix, bool addNumber);
int ExportMultipleByLabel(bool byName, const wxString &prefix, bool addNumber);
/** \brief Export each track in the project to a separate file
*
@@ -62,7 +62,7 @@ private:
* (true), or just numbered (false).
* @param prefix The string used to prefix the file number if files are being
* numbered rather than named */
int ExportMultipleByTrack(bool byName, wxString prefix, bool addNumber);
int ExportMultipleByTrack(bool byName, const wxString &prefix, bool addNumber);
/** Export one file of an export multiple set
*
@@ -83,7 +83,7 @@ private:
/** \brief Takes an arbitrary text string and converts it to a form that can
* be used as a file name, if necessary prompting the user to edit the file
* name produced */
wxString MakeFileName(wxString input);
wxString MakeFileName(const wxString &input);
// Dialog
void PopulateOrExchange(ShuttleGui& S);
void EnableControls();