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 /tools/dcpinfo.cc | |
| parent | bebe2f996176113a527bf2492fd179420493d0ff (diff) | |
Assorted c++11 cleanups.
Diffstat (limited to 'tools/dcpinfo.cc')
| -rw-r--r-- | tools/dcpinfo.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tools/dcpinfo.cc b/tools/dcpinfo.cc index 18272dcf..c8519858 100644 --- a/tools/dcpinfo.cc +++ b/tools/dcpinfo.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2012-2020 Carl Hetherington <cth@carlh.net> + Copyright (C) 2012-2021 Carl Hetherington <cth@carlh.net> This file is part of libdcp. @@ -52,7 +52,6 @@ #include "compose.hpp" #include <getopt.h> #include <boost/filesystem.hpp> -#include <boost/foreach.hpp> #include <boost/algorithm/string.hpp> #include <iostream> #include <cstdlib> @@ -384,7 +383,7 @@ main (int argc, char* argv[]) OUTPUT_DCP_PATH("DCP: %1\n", boost::filesystem::path(argv[optind]).string()); dcp::filter_notes (notes, ignore_missing_assets); - BOOST_FOREACH (dcp::VerificationNote i, notes) { + for (auto i: notes) { cerr << "Error: " << note_to_string(i) << "\n"; } @@ -396,11 +395,11 @@ main (int argc, char* argv[]) dcp::Time total_time; - BOOST_FOREACH (shared_ptr<CPL> i, cpls) { + for (auto i: cpls) { OUTPUT_CPL_NAME_ID(" CPL: %1 %2\n", i->annotation_text().get_value_or(""), i->id()); int R = 1; - BOOST_FOREACH (shared_ptr<Reel> j, i->reels()) { + for (auto j: i->reels()) { if (should_output(only, "picture") || should_output(only, "sound") || should_output(only, "subtitle")) { cout << " Reel " << R << "\n"; } |
