mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-08 04:32:00 +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:
@@ -46,9 +46,9 @@
|
||||
|
||||
using LangHash = std::unordered_map<wxString, wxString>;
|
||||
|
||||
static bool TranslationExists(wxArrayString &audacityPathList, wxString code)
|
||||
static bool TranslationExists(const FilePaths &audacityPathList, wxString code)
|
||||
{
|
||||
wxArrayString results;
|
||||
FilePaths results;
|
||||
wxGetApp().FindFilesInPathList(wxString::Format(wxT("%s/audacity.mo"),
|
||||
code),
|
||||
audacityPathList,
|
||||
@@ -202,7 +202,7 @@ void GetLanguages(wxArrayString &langCodes, wxArrayString &langNames)
|
||||
localLanguageName[code] = name;
|
||||
}
|
||||
|
||||
wxArrayString audacityPathList = wxGetApp().audacityPathList;
|
||||
auto audacityPathList = wxGetApp().audacityPathList;
|
||||
|
||||
#if defined(__WXGTK__)
|
||||
wxGetApp().AddUniquePathToPathList(wxString::Format(wxT("%s/share/locale"),
|
||||
|
||||
Reference in New Issue
Block a user