diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-01-09 09:00:57 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-01-09 09:00:57 +0100 |
| commit | 18f00cbcdab8eaf3db1cb5a7fba3ed78bea565fa (patch) | |
| tree | 0949475ae1774a88c750a0d434fb27d14b9f3ebb /src | |
| parent | 4cd15189d6df01d6b73de34002bdabfc1208ee00 (diff) | |
c++11 tidying.
Diffstat (limited to 'src')
| -rw-r--r-- | src/dcp_reader.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/dcp_reader.cc b/src/dcp_reader.cc index 5784ad0..82808b3 100644 --- a/src/dcp_reader.cc +++ b/src/dcp_reader.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2014-2018 Carl Hetherington <cth@carlh.net> + Copyright (C) 2014-2021 Carl Hetherington <cth@carlh.net> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -23,7 +23,6 @@ #include <dcp/subtitle_string.h> #include <dcp/interop_subtitle_asset.h> #include <dcp/smpte_subtitle_asset.h> -#include <boost/foreach.hpp> #include <boost/filesystem.hpp> using std::list; @@ -72,10 +71,10 @@ DCPReader::DCPReader (boost::filesystem::path file) } - BOOST_FOREACH (shared_ptr<dcp::Subtitle> i, sc->subtitles ()) { + for (auto i: sc->subtitles()) { /* We don't deal with image subs */ - shared_ptr<dcp::SubtitleString> is = dynamic_pointer_cast<dcp::SubtitleString>(i); + auto is = dynamic_pointer_cast<dcp::SubtitleString>(i); if (!is) { continue; } |
