1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-20 09:31:15 +02:00

ModuleInterface::GetFileExtensions() returns const reference...

... avoiding repeated array allocation
This commit is contained in:
Paul Licameli
2019-03-08 15:06:24 -05:00
parent bf005c0dec
commit 74128156bf
18 changed files with 43 additions and 20 deletions

View File

@@ -84,7 +84,7 @@ public:
// This function returns nonempty only when that is the case, and lists
// the possible extensions of such files (an empty string in a nonempty
// array means any file is a candidate).
virtual FileExtensions GetFileExtensions() = 0;
virtual const FileExtensions &GetFileExtensions() = 0;
// Returns empty, or else, where to copy a plug-in file or bundle.
// Drag-and-drop is supported only if GetFileExtensions() returns nonempty and