diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-04-03 00:04:31 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-04-03 23:25:19 +0200 |
| commit | d311043bf3c1e3e7f41b314f7ab7c91ed7e5aa7f (patch) | |
| tree | ab41f58144bda078f96ce23f6328bd36cbd18dc6 /src/wx/subtitle_appearance_dialog.cc | |
| parent | 8c39f950ec8f8b3cf4d258279ab499d7e71dafc8 (diff) | |
C++11 and whitespace cleanups.
Diffstat (limited to 'src/wx/subtitle_appearance_dialog.cc')
| -rw-r--r-- | src/wx/subtitle_appearance_dialog.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/wx/subtitle_appearance_dialog.cc b/src/wx/subtitle_appearance_dialog.cc index b5ab8c2db..5ae9f5da4 100644 --- a/src/wx/subtitle_appearance_dialog.cc +++ b/src/wx/subtitle_appearance_dialog.cc @@ -39,11 +39,12 @@ DCPOMATIC_DISABLE_WARNINGS DCPOMATIC_ENABLE_WARNINGS +using std::dynamic_pointer_cast; using std::map; -using std::string; +using std::make_shared; using std::shared_ptr; +using std::string; using boost::bind; -using std::dynamic_pointer_cast; using boost::optional; using namespace dcpomatic; #if BOOST_VERSION >= 106100 @@ -68,7 +69,7 @@ SubtitleAppearanceDialog::SubtitleAppearanceDialog (wxWindow* parent, shared_ptr /* XXX: assuming that all FFmpeg streams have bitmap subs */ if (_stream->colours().empty()) { _job_manager_connection = JobManager::instance()->ActiveJobsChanged.connect(boost::bind(&SubtitleAppearanceDialog::active_jobs_changed, this, _1)); - _job = JobManager::instance()->add(shared_ptr<Job>(new ExamineFFmpegSubtitlesJob(film, ff))); + _job = JobManager::instance()->add(make_shared<ExamineFFmpegSubtitlesJob>(film, ff)); } } |
