mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-29 18:46:05 +02:00
Sweep unnecessary wxString copies: xml
This commit is contained in:
@@ -62,7 +62,7 @@ bool XMLValueChecker::IsGoodFileName(const wxString & strFileName, const wxStrin
|
||||
return (fileName.IsOk() && fileName.FileExists());
|
||||
}
|
||||
|
||||
bool XMLValueChecker::IsGoodFileString(wxString str)
|
||||
bool XMLValueChecker::IsGoodFileString(const wxString &str)
|
||||
{
|
||||
return (IsGoodString(str) &&
|
||||
!str.IsEmpty() &&
|
||||
@@ -97,7 +97,7 @@ bool XMLValueChecker::IsGoodPathName(const wxString & strPathName)
|
||||
return XMLValueChecker::IsGoodFileName(fileName.GetFullName(), fileName.GetPath(wxPATH_GET_VOLUME));
|
||||
}
|
||||
|
||||
bool XMLValueChecker::IsGoodPathString(wxString str)
|
||||
bool XMLValueChecker::IsGoodPathString(const wxString &str)
|
||||
{
|
||||
return (IsGoodString(str) &&
|
||||
!str.IsEmpty() &&
|
||||
|
||||
Reference in New Issue
Block a user