1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-22 22:43:01 +02:00

Sweep unnecessary wxString copies: rest

This commit is contained in:
Paul Licameli
2016-02-22 21:18:11 -05:00
parent 6597575f6a
commit 9bf098c7d9
44 changed files with 108 additions and 103 deletions

View File

@@ -388,7 +388,7 @@ class AUDACITY_DLL_API AudioIO {
/** \brief Ensure selected device names are valid
*
*/
static bool ValidateDeviceNames(wxString play, wxString rec);
static bool ValidateDeviceNames(const wxString &play, const wxString &rec);
/** \brief Function to automatically set an acceptable volume
*
@@ -475,7 +475,7 @@ private:
* and would be neater done once. If the device isn't found, return the
* default device index.
*/
static int getRecordDevIndex(wxString devName = wxT(""));
static int getRecordDevIndex(const wxString &devName = wxEmptyString);
/** \brief get the index of the device selected in the preferences.
*
* If the device isn't found, returns -1
@@ -491,7 +491,7 @@ private:
* and would be neater done once. If the device isn't found, return the
* default device index.
*/
static int getPlayDevIndex(wxString devName = wxT(""));
static int getPlayDevIndex(const wxString &devName = wxEmptyString);
/** \brief Array of audio sample rates to try to use
*