diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-01-22 01:39:22 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-01-22 01:39:22 +0100 |
| commit | 5fbcd3a8dc711c6c42efabbac72ab0408f504ea2 (patch) | |
| tree | dfc84a000b2e2c67b6c73c2b8809b5da3137ecc4 /src/combine.cc | |
| parent | bebe2f996176113a527bf2492fd179420493d0ff (diff) | |
Assorted c++11 cleanups.
Diffstat (limited to 'src/combine.cc')
| -rw-r--r-- | src/combine.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/combine.cc b/src/combine.cc index cd91d5b1..c2cae547 100644 --- a/src/combine.cc +++ b/src/combine.cc @@ -42,7 +42,6 @@ #include "interop_subtitle_asset.h" #include "raw_convert.h" #include <boost/filesystem.hpp> -#include <boost/foreach.hpp> #include <set> #include <string> #include <vector> @@ -110,7 +109,7 @@ dcp::combine ( DCP output_dcp (output); optional<dcp::Standard> standard; - BOOST_FOREACH (path i, inputs) { + for (auto i: inputs) { DCP dcp (i); dcp.read (); if (!standard) { @@ -123,15 +122,15 @@ dcp::combine ( vector<path> paths; vector<shared_ptr<dcp::Asset>> assets; - BOOST_FOREACH (path i, inputs) { + for (auto i: inputs) { DCP dcp (i); dcp.read (); - BOOST_FOREACH (shared_ptr<dcp::CPL> j, dcp.cpls()) { + for (auto j: dcp.cpls()) { output_dcp.add (j); } - BOOST_FOREACH (shared_ptr<dcp::Asset> j, dcp.assets(true)) { + for (auto j: dcp.assets(true)) { if (dynamic_pointer_cast<dcp::CPL>(j)) { continue; } |
