1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-14 17:14:07 +01:00

Replace "" and wxEmptyString with {} in default argument values

This commit is contained in:
Paul Licameli
2019-03-15 14:28:30 -04:00
parent 2d71cc9d60
commit 135c2a71ce
25 changed files with 85 additions and 85 deletions

View File

@@ -59,7 +59,7 @@ bool XMLValueChecker::IsGoodLongString(const wxString & str)
// "Good" means the name is well-formed and names an existing file or folder.
bool XMLValueChecker::IsGoodFileName(const wxString & strFileName, const wxString & strDirName /* = "" */)
bool XMLValueChecker::IsGoodFileName(const wxString & strFileName, const wxString & strDirName /* = {} */)
{
// Test strFileName.
if (!IsGoodFileString(strFileName) ||
@@ -83,7 +83,7 @@ bool XMLValueChecker::IsGoodFileString(const wxString &str)
(str.Find(wxFileName::GetPathSeparator()) == -1)); // No path separator characters.
}
bool XMLValueChecker::IsGoodSubdirName(const wxString & strSubdirName, const wxString & strDirName /* = "" */)
bool XMLValueChecker::IsGoodSubdirName(const wxString & strSubdirName, const wxString & strDirName /* = {} */)
{
// Test strSubdirName.
// Note this prevents path separators, and relative path to parents (strDirName),

View File

@@ -33,9 +33,9 @@ public:
// Labels are allowed to be very long. At some future date we will format long labels nicely.
static bool IsGoodLongString(const wxString & str);
static bool IsGoodFileName(const wxString & strFileName, const wxString & strDirName = wxEmptyString);
static bool IsGoodFileName(const wxString & strFileName, const wxString & strDirName = {});
static bool IsGoodFileString(const wxString &str);
static bool IsGoodSubdirName(const wxString & strSubdirName, const wxString & strDirName = wxEmptyString);
static bool IsGoodSubdirName(const wxString & strSubdirName, const wxString & strDirName = {});
static bool IsGoodPathName(const wxString & strPathName);
static bool IsGoodPathString(const wxString &str);