mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-05 16:43:52 +01:00
Sweep unnecessary wxString copies: rest
This commit is contained in:
@@ -123,7 +123,7 @@ class AudacityApp:public wxApp {
|
||||
void OnMRUClear(wxCommandEvent &event);
|
||||
void OnMRUFile(wxCommandEvent &event);
|
||||
// Backend for above - returns true for success, false for failure
|
||||
bool MRUOpen(wxString fileName);
|
||||
bool MRUOpen(const wxString &fileName);
|
||||
|
||||
void OnReceiveCommand(AppCommandEvent &event);
|
||||
|
||||
@@ -174,9 +174,9 @@ class AudacityApp:public wxApp {
|
||||
wxString defaultTempDir;
|
||||
|
||||
// Useful functions for working with search paths
|
||||
static void AddUniquePathToPathList(wxString path,
|
||||
static void AddUniquePathToPathList(const wxString &path,
|
||||
wxArrayString &pathList);
|
||||
static void AddMultiPathsToPathList(wxString multiPathString,
|
||||
static void AddMultiPathsToPathList(const wxString &multiPathString,
|
||||
wxArrayString &pathList);
|
||||
static void FindFilesInPathList(const wxString & pattern,
|
||||
const wxArrayString & pathList,
|
||||
@@ -214,7 +214,7 @@ class AudacityApp:public wxApp {
|
||||
void DeInitCommandHandler();
|
||||
|
||||
bool InitTempDir();
|
||||
bool CreateSingleInstanceChecker(wxString dir);
|
||||
bool CreateSingleInstanceChecker(const wxString &dir);
|
||||
|
||||
wxCmdLineParser *ParseCommandLine();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user