c++11 tidying.
authorCarl Hetherington <cth@carlh.net>
Sat, 9 Jan 2021 08:00:57 +0000 (09:00 +0100)
committerCarl Hetherington <cth@carlh.net>
Sat, 9 Jan 2021 08:00:57 +0000 (09:00 +0100)
src/dcp_reader.cc

index 5784ad0fb52c4f23409865ecf863ff4c44ef0669..82808b3c1336a8c43d3fe337ef896bff857b6a18 100644 (file)
@@ -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;
                }