diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-12-25 01:44:55 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-05-02 00:31:04 +0200 |
| commit | 469a5dbd4251b094e6d4b668a763568c25947b88 (patch) | |
| tree | 8484e7adecd048dc789c81d4a32044570bcd309e | |
| parent | a2f8e8839f276bc83d5926983ab2d38e0a36f927 (diff) | |
C++11 / sorting cleanups.
| -rw-r--r-- | src/wx/content_menu.cc | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/wx/content_menu.cc b/src/wx/content_menu.cc index 93bcc0a6d..18ce64475 100644 --- a/src/wx/content_menu.cc +++ b/src/wx/content_menu.cc @@ -25,8 +25,8 @@ #include "content_properties_dialog.h" #include "film_viewer.h" #include "repeat_dialog.h" -#include "timeline_audio_content_view.h" #include "timeline_video_content_view.h" +#include "timeline_audio_content_view.h" #include "wx_util.h" #include "lib/audio_content.h" #include "lib/config.h" @@ -38,6 +38,7 @@ #include "lib/exceptions.h" #include "lib/ffmpeg_content.h" #include "lib/film.h" +#include "lib/find_missing.h" #include "lib/guess_crop.h" #include "lib/image_content.h" #include "lib/job_manager.h" @@ -342,14 +343,14 @@ ContentMenu::find_missing () boost::filesystem::path path; if ((ic && !ic->still ()) || dc) { - auto d = new wxDirDialog (0, _("Choose a folder"), wxT (""), wxDD_DIR_MUST_EXIST); + auto d = new wxDirDialog (nullptr, _("Choose a folder"), wxT (""), wxDD_DIR_MUST_EXIST); r = d->ShowModal (); - path = wx_to_std (d->GetPath ()); + path = wx_to_std (d->GetPath()); d->Destroy (); } else { - auto d = new wxFileDialog (0, _("Choose a file"), wxT (""), wxT (""), wxT ("*.*")); + auto d = new wxFileDialog (nullptr, _("Choose a file"), wxT (""), wxT (""), wxT ("*.*")); r = d->ShowModal (); - path = wx_to_std (d->GetPath ()); + path = wx_to_std (d->GetPath()); d->Destroy (); } @@ -393,7 +394,7 @@ ContentMenu::re_examine () } for (auto i: _content) { - JobManager::instance()->add (shared_ptr<Job> (new ExamineContentJob (film, i))); + JobManager::instance()->add(make_shared<ExamineContentJob>(film, i)); } } |
