summaryrefslogtreecommitdiff
path: root/test/shared_subtitle_test.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-04-06 22:32:14 +0200
committerCarl Hetherington <cth@carlh.net>2023-04-19 12:59:37 +0200
commit7a47f00a7ff3f95ef4013bf453340b94c8535e07 (patch)
tree134b34a64892e470c66cc599435f28e6b8190a23 /test/shared_subtitle_test.cc
parentc6387f885fd39e901189b6c73fca0a28cc9ec85b (diff)
Remove xmlns:xs namespace from subtitle XML (DoM #2498).
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"