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/wx/kdm_cpl_panel.cc | |
| parent | dd9be86db6cde0afa5da0d1d1ac43b42e05dca26 (diff) | |
BOOST_FOREACH.
Diffstat (limited to 'src/wx/kdm_cpl_panel.cc')
| -rw-r--r-- | src/wx/kdm_cpl_panel.cc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/wx/kdm_cpl_panel.cc b/src/wx/kdm_cpl_panel.cc index 88c73ed11..be5e42dd8 100644 --- a/src/wx/kdm_cpl_panel.cc +++ b/src/wx/kdm_cpl_panel.cc @@ -27,7 +27,6 @@ DCPOMATIC_DISABLE_WARNINGS #include <libxml++/libxml++.h> DCPOMATIC_ENABLE_WARNINGS #include <libcxml/cxml.h> -#include <boost/foreach.hpp> using std::vector; @@ -72,7 +71,7 @@ KDMCPLPanel::update_cpl_choice () { _cpl->Clear (); - BOOST_FOREACH (CPLSummary const & i, _cpls) { + for (auto const& i: _cpls) { _cpl->Append (std_to_wx(i.cpl_id)); if (_cpls.size() > 0) { @@ -116,10 +115,10 @@ KDMCPLPanel::cpl_browse_clicked () cpl_document.read_file (cpl_file); bool encrypted = false; - BOOST_FOREACH (cxml::ConstNodePtr i, cpl_document.node_children("ReelList")) { - BOOST_FOREACH (cxml::ConstNodePtr j, i->node_children("Reel")) { - BOOST_FOREACH (cxml::ConstNodePtr k, j->node_children("AssetList")) { - BOOST_FOREACH (cxml::ConstNodePtr l, k->node_children()) { + for (auto i: cpl_document.node_children("ReelList")) { + for (auto j: i->node_children("Reel")) { + for (auto k: j->node_children("AssetList")) { + for (auto l: k->node_children()) { if (!l->node_children("KeyId").empty()) { encrypted = true; } |
