summaryrefslogtreecommitdiff
path: root/test/shared_subtitle_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/shared_subtitle_test.cc')
-rw-r--r--test/shared_subtitle_test.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/shared_subtitle_test.cc b/test/shared_subtitle_test.cc
index 9c841f90..69ae2be4 100644
--- a/test/shared_subtitle_test.cc
+++ b/test/shared_subtitle_test.cc
@@ -51,10 +51,10 @@
#include <boost/test/unit_test.hpp>
-using std::string;
+using std::make_shared;
using std::shared_ptr;
+using std::string;
using std::vector;
-using std::make_shared;
using boost::optional;
@@ -183,9 +183,9 @@ BOOST_AUTO_TEST_CASE (format_xml_test1)
fred->add_child_text("Fred");
fred->add_child("Text")->add_child_text("Jim");
fred->add_child_text("Sheila");
- BOOST_REQUIRE_EQUAL (dcp::SubtitleAsset::format_xml(doc, { {"", "fred"}, {"jim", "sheila"} }),
+ BOOST_REQUIRE_EQUAL (dcp::SubtitleAsset::format_xml(doc, make_pair(string{}, string{"fred"})),
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
-"<Foo xmlns=\"fred\" xmlns:jim=\"sheila\">\n"
+"<Foo xmlns=\"fred\">\n"
" <Empty/>\n"
" <Text>Hello world</Text>\n"
" <Font>\n"