mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-05 22:21:15 +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:
@@ -141,7 +141,7 @@ bool ModulePrefs::Commit()
|
||||
|
||||
|
||||
// static function that tells us about a module.
|
||||
int ModulePrefs::GetModuleStatus(const wxString &fname){
|
||||
int ModulePrefs::GetModuleStatus(const FilePath &fname){
|
||||
// Default status is NEW module, and we will ask once.
|
||||
int iStatus = kModuleNew;
|
||||
|
||||
@@ -155,7 +155,7 @@ int ModulePrefs::GetModuleStatus(const wxString &fname){
|
||||
return iStatus;
|
||||
}
|
||||
|
||||
void ModulePrefs::SetModuleStatus(const wxString &fname, int iStatus){
|
||||
void ModulePrefs::SetModuleStatus(const FilePath &fname, int iStatus){
|
||||
wxString ShortName = wxFileName( fname ).GetName();
|
||||
wxString PrefName = wxString( wxT("/Module/") ) + ShortName.Lower();
|
||||
gPrefs->Write( PrefName, iStatus );
|
||||
|
||||
Reference in New Issue
Block a user