mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-21 14:02:57 +02: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:
@@ -211,7 +211,7 @@ int ufile_close(AVIOContext *pb)
|
||||
}
|
||||
|
||||
// Open a file with a (possibly) Unicode filename
|
||||
int ufile_fopen(AVIOContext **s, const wxString & name, int flags)
|
||||
int ufile_fopen(AVIOContext **s, const FilePath & name, int flags)
|
||||
{
|
||||
wxFile::OpenMode mode;
|
||||
|
||||
@@ -250,7 +250,7 @@ int ufile_fopen(AVIOContext **s, const wxString & name, int flags)
|
||||
|
||||
// Detect type of input file and open it if recognized. Routine
|
||||
// based on the av_open_input_file() libavformat function.
|
||||
int ufile_fopen_input(std::unique_ptr<FFmpegContext> &context_ptr, wxString & name)
|
||||
int ufile_fopen_input(std::unique_ptr<FFmpegContext> &context_ptr, FilePath & name)
|
||||
{
|
||||
context_ptr.reset();
|
||||
auto context = std::make_unique<FFmpegContext>();
|
||||
|
Reference in New Issue
Block a user