diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-01-04 21:32:13 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-01-07 23:27:56 +0100 |
| commit | a5d004b0773f633401528392fc28e66d70e13ac8 (patch) | |
| tree | 9f83ff2ab353f5a63918210d4930d0ead228375e /src/tools/dcpomatic_player.cc | |
| parent | dd9be86db6cde0afa5da0d1d1ac43b42e05dca26 (diff) | |
BOOST_FOREACH.
Diffstat (limited to 'src/tools/dcpomatic_player.cc')
| -rw-r--r-- | src/tools/dcpomatic_player.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/tools/dcpomatic_player.cc b/src/tools/dcpomatic_player.cc index 5b2c9a56a..0586db975 100644 --- a/src/tools/dcpomatic_player.cc +++ b/src/tools/dcpomatic_player.cc @@ -278,7 +278,7 @@ public: } bool ok = true; - BOOST_FOREACH (shared_ptr<Content> i, _film->content()) { + for (auto i: _film->content()) { shared_ptr<DCPContent> d = dynamic_pointer_cast<DCPContent>(i); if (d && !d->kdm_timing_window_valid()) { ok = false; @@ -303,7 +303,7 @@ public: if (dcp) { DCPExaminer ex (dcp, true); shared_ptr<dcp::CPL> playing_cpl; - BOOST_FOREACH (shared_ptr<dcp::CPL> i, ex.cpls()) { + for (auto i: ex.cpls()) { if (!dcp->cpl() || i->id() == *dcp->cpl()) { playing_cpl = i; } @@ -415,10 +415,10 @@ public: /* Start off as Flat */ _film->set_container (Ratio::from_id("185")); - BOOST_FOREACH (shared_ptr<Content> i, _film->content()) { + for (auto i: _film->content()) { shared_ptr<DCPContent> dcp = dynamic_pointer_cast<DCPContent>(i); - BOOST_FOREACH (shared_ptr<TextContent> j, i->text) { + for (auto j: i->text) { j->set_use (true); } @@ -452,7 +452,7 @@ public: if (first) { DCPExaminer ex (first, true); int id = ID_view_cpl; - BOOST_FOREACH (shared_ptr<dcp::CPL> i, ex.cpls()) { + for (auto i: ex.cpls()) { wxMenuItem* j = _cpl_menu->AppendRadioItem( id, wxString::Format("%s (%s)", std_to_wx(i->annotation_text()).data(), std_to_wx(i->id()).data()) @@ -612,7 +612,7 @@ private: if (!ok || !report_errors_from_last_job(this)) { return; } - BOOST_FOREACH (shared_ptr<TextContent> i, dcp->text) { + for (auto i: dcp->text) { i->set_use (true); } if (dcp->video) { |
