X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=test%2Fdcp_subtitle_test.cc;h=025d33c6aae04d07c8f6159da2996dc28e206fe0;hb=a5d004b0773f633401528392fc28e66d70e13ac8;hp=f7e7fe795b56f954bec6c416f45ba93ba8afa32e;hpb=8611fc8597605aa51373adb4fc8f0c697b8c7360;p=dcpomatic.git diff --git a/test/dcp_subtitle_test.cc b/test/dcp_subtitle_test.cc index f7e7fe795..025d33c6a 100644 --- a/test/dcp_subtitle_test.cc +++ b/test/dcp_subtitle_test.cc @@ -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 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") != ""); }