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:
@@ -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),
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user