BOOST_FOREACH.
[dcpomatic.git] / test / dcp_subtitle_test.cc
index f7e7fe795b56f954bec6c416f45ba93ba8afa32e..025d33c6aae04d07c8f6159da2996dc28e206fe0 100644 (file)
@@ -40,7 +40,7 @@
 
 using std::cout;
 using std::list;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
@@ -55,7 +55,7 @@ store (ContentStringText sub)
        if (!stored) {
                stored = sub;
        } else {
-               BOOST_FOREACH (dcp::SubtitleString i, sub.subs) {
+               for (auto i: sub.subs) {
                        stored->subs.push_back (i);
                }
        }
@@ -190,7 +190,7 @@ static
 void
 check_font_tags (list<cxml::NodePtr> nodes)
 {
-       BOOST_FOREACH (cxml::NodePtr i, nodes) {
+       for (auto i: nodes) {
                if (i->name() == "Font") {
                        BOOST_CHECK (!i->optional_string_attribute("Id") || i->string_attribute("Id") != "");
                }