BOOST_FOREACH.
[dcpomatic.git] / src / lib / decoder.cc
index d51282b537dd1b97fc5f40df73c4b7f91a331d07..bf0bd1a26945783d3501b9f91e82ac358a5bedc0 100644 (file)
@@ -27,8 +27,8 @@
 
 using std::cout;
 using boost::optional;
-using boost::shared_ptr;
-using boost::weak_ptr;
+using std::shared_ptr;
+using std::weak_ptr;
 using namespace dcpomatic;
 
 Decoder::Decoder (weak_ptr<const Film> film)
@@ -60,7 +60,7 @@ Decoder::position () const
           which can cause bugs like #1581.
        */
        if (!pos) {
-               BOOST_FOREACH (shared_ptr<TextDecoder> i, text) {
+               for (auto i: text) {
                        if (!i->ignore() && (!pos || i->position(f) < *pos)) {
                                pos = i->position(f);
                        }
@@ -79,7 +79,7 @@ Decoder::seek (ContentTime, bool)
        if (audio) {
                audio->seek ();
        }
-       BOOST_FOREACH (shared_ptr<TextDecoder> i, text) {
+       for (auto i: text) {
                i->seek ();
        }
 }