diff --git a/src/project.cpp b/src/project.cpp index 008c9fb7a..172a207fe 100644 --- a/src/project.cpp +++ b/src/project.cpp @@ -157,7 +157,7 @@ bool Project::DoLoadSubtitles(agi::fs::path const& path, std::string encoding, P return true; } -void Project::LoadSubtitles(agi::fs::path const& path, std::string encoding) { +void Project::LoadSubtitles(agi::fs::path path, std::string encoding) { ProjectProperties properties; if (DoLoadSubtitles(path, encoding, properties)) LoadUnloadFiles(properties); @@ -273,7 +273,7 @@ void Project::DoLoadAudio(agi::fs::path const& path, bool quiet) { AnnounceAudioProviderModified(audio_provider.get()); } -void Project::LoadAudio(agi::fs::path const& path) { +void Project::LoadAudio(agi::fs::path path) { DoLoadAudio(path, false); } @@ -327,7 +327,7 @@ bool Project::DoLoadVideo(agi::fs::path const& path) { return true; } -void Project::LoadVideo(agi::fs::path const& path) { +void Project::LoadVideo(agi::fs::path path) { if (path.empty()) return; if (!DoLoadVideo(path)) return; if (OPT_GET("Video/Open Audio")->GetBool() && audio_file != video_file && video_provider->HasAudio()) @@ -357,7 +357,7 @@ void Project::DoLoadTimecodes(agi::fs::path const& path) { AnnounceTimecodesModified(timecodes); } -void Project::LoadTimecodes(agi::fs::path const& path) { +void Project::LoadTimecodes(agi::fs::path path) { try { DoLoadTimecodes(path); } @@ -383,7 +383,7 @@ void Project::DoLoadKeyframes(agi::fs::path const& path) { AnnounceKeyframesModified(keyframes); } -void Project::LoadKeyframes(agi::fs::path const& path) { +void Project::LoadKeyframes(agi::fs::path path) { try { DoLoadKeyframes(path); } diff --git a/src/project.h b/src/project.h index 22d2e1b5f..b51cf4dc9 100644 --- a/src/project.h +++ b/src/project.h @@ -69,26 +69,26 @@ public: Project(agi::Context *context); ~Project(); - void LoadSubtitles(agi::fs::path const& path, std::string encoding=""); + void LoadSubtitles(agi::fs::path path, std::string encoding=""); void CloseSubtitles(); bool CanLoadSubtitlesFromVideo() const { return video_has_subtitles; } - void LoadAudio(agi::fs::path const& path); + void LoadAudio(agi::fs::path path); void CloseAudio(); ::AudioProvider *AudioProvider() const { return audio_provider.get(); } agi::fs::path const& AudioName() const { return audio_file; } - void LoadVideo(agi::fs::path const& path); + void LoadVideo(agi::fs::path path); void CloseVideo(); AsyncVideoProvider *VideoProvider() const { return video_provider.get(); } agi::fs::path const& VideoName() const { return video_file; } - void LoadTimecodes(agi::fs::path const& path); + void LoadTimecodes(agi::fs::path path); void CloseTimecodes(); bool CanCloseTimecodes() const { return !timecodes_file.empty(); } agi::vfr::Framerate const& Timecodes() const { return timecodes; } - void LoadKeyframes(agi::fs::path const& path); + void LoadKeyframes(agi::fs::path path); void CloseKeyframes(); bool CanCloseKeyframes() const { return !keyframes_file.empty(); } std::vector const& Keyframes() const { return keyframes; }