mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-21 14:02:57 +02:00
Use type aliases FileExtension, FileExtensions...
... for wxString and wxArrayStringEx, holding file extensions (without dot); to be replaced later with different types (not yet using std::vector, becase of some uses of wxArrayString::Index with two arguments) And simplify some constructions of arrays
This commit is contained in:
@@ -137,11 +137,9 @@ wxString AudioUnitEffectsModule::GetDescription()
|
||||
// ModuleInterface implementation
|
||||
// ============================================================================
|
||||
|
||||
wxArrayString AudioUnitEffectsModule::GetFileExtensions()
|
||||
FileExtensions AudioUnitEffectsModule::GetFileExtensions()
|
||||
{
|
||||
static const wxString ext[] = { _T("au") };
|
||||
static const wxArrayString result{ sizeof(ext)/sizeof(*ext), ext };
|
||||
return result;
|
||||
return {{ _T("au") }};
|
||||
}
|
||||
|
||||
bool AudioUnitEffectsModule::Initialize()
|
||||
|
@@ -242,7 +242,7 @@ public:
|
||||
bool Initialize() override;
|
||||
void Terminate() override;
|
||||
|
||||
wxArrayString GetFileExtensions() override;
|
||||
FileExtensions GetFileExtensions() override;
|
||||
wxString InstallPath() override { return {}; }
|
||||
|
||||
bool AutoRegisterPlugins(PluginManagerInterface & pm) override;
|
||||
|
Reference in New Issue
Block a user