mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-07 20:22:13 +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:
@@ -173,7 +173,7 @@ static bool HaveFilesToRecover()
|
||||
|
||||
static bool RemoveAllAutoSaveFiles()
|
||||
{
|
||||
wxArrayString files;
|
||||
FilePaths files;
|
||||
wxDir::GetAllFiles(FileNames::AutoSaveDir(), &files,
|
||||
wxT("*.autosave"), wxDIR_FILES);
|
||||
|
||||
@@ -205,7 +205,7 @@ static bool RecoverAllProjects(AudacityProject** pproj)
|
||||
// Open a project window for each auto save file
|
||||
wxString filename;
|
||||
|
||||
wxArrayString files;
|
||||
FilePaths files;
|
||||
wxDir::GetAllFiles(FileNames::AutoSaveDir(), &files,
|
||||
wxT("*.autosave"), wxDIR_FILES);
|
||||
|
||||
@@ -678,7 +678,7 @@ bool AutoSaveFile::IsEmpty() const
|
||||
return mBuffer.GetLength() == 0;
|
||||
}
|
||||
|
||||
bool AutoSaveFile::Decode(const wxString & fileName)
|
||||
bool AutoSaveFile::Decode(const FilePath & fileName)
|
||||
{
|
||||
char ident[sizeof(AutoSaveIdent)];
|
||||
size_t len = strlen(AutoSaveIdent);
|
||||
|
||||
Reference in New Issue
Block a user