mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-11 08:56:03 +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:
@@ -93,14 +93,14 @@ public:
|
||||
|
||||
wxString GetPluginStringID() override { return wxT("liboggvorbis"); }
|
||||
wxString GetPluginFormatDescription() override;
|
||||
std::unique_ptr<ImportFileHandle> Open(const wxString &Filename) override;
|
||||
std::unique_ptr<ImportFileHandle> Open(const FilePath &Filename) override;
|
||||
};
|
||||
|
||||
|
||||
class OggImportFileHandle final : public ImportFileHandle
|
||||
{
|
||||
public:
|
||||
OggImportFileHandle(const wxString & filename,
|
||||
OggImportFileHandle(const FilePath & filename,
|
||||
std::unique_ptr<wxFFile> &&file,
|
||||
std::unique_ptr<OggVorbis_File> &&vorbisFile)
|
||||
: ImportFileHandle(filename),
|
||||
@@ -170,7 +170,7 @@ wxString OggImportPlugin::GetPluginFormatDescription()
|
||||
return DESC;
|
||||
}
|
||||
|
||||
std::unique_ptr<ImportFileHandle> OggImportPlugin::Open(const wxString &filename)
|
||||
std::unique_ptr<ImportFileHandle> OggImportPlugin::Open(const FilePath &filename)
|
||||
{
|
||||
// Suppress some compiler warnings about unused global variables in the library header
|
||||
wxUnusedVar(OV_CALLBACKS_DEFAULT);
|
||||
|
||||
Reference in New Issue
Block a user