1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-05 03:03:10 +01:00

Use type aliases FilePath, FilePaths...

... for wxString and wxArrayStringEx, holding file paths (absolute or relative,
directory or plain file); to be replaced later with different types

(not yet using std::vector, becase of some uses of wxArrayString::Index with
two arguments)
This commit is contained in:
Paul Licameli
2019-03-07 14:50:22 -05:00
parent 485b6bb425
commit a30000cf74
80 changed files with 371 additions and 342 deletions

View File

@@ -22,6 +22,8 @@
#include <wx/string.h>
#include <stdio.h>
#include "audacity/Types.h"
#include "XMLWriter.h"
class XMLValueChecker
{
@@ -33,11 +35,11 @@ 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 = {});
static bool IsGoodFileString(const wxString &str);
static bool IsGoodSubdirName(const wxString & strSubdirName, const wxString & strDirName = {});
static bool IsGoodPathName(const wxString & strPathName);
static bool IsGoodPathString(const wxString &str);
static bool IsGoodFileName(const FilePath & strFileName, const FilePath & strDirName = {});
static bool IsGoodFileString(const FilePath &str);
static bool IsGoodSubdirName(const FilePath & strSubdirName, const FilePath & strDirName = {});
static bool IsGoodPathName(const FilePath & strPathName);
static bool IsGoodPathString(const FilePath &str);
/** @brief Check that the supplied string can be converted to a long (32bit)
* integer.