summaryrefslogtreecommitdiff
path: root/test/interop_load_font_test.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-04-14 01:00:05 +0200
committerCarl Hetherington <cth@carlh.net>2021-04-14 01:00:05 +0200
commit274dd30f2b11fe8ea563a2ac7436c9d463865b0b (patch)
tree199e7447606339d461f6f87d16095376d8f809b3 /test/interop_load_font_test.cc
parent4bd57fbbac67ac04ec47a9765b9f278aa1691851 (diff)
Fix/hide some warnings.
Diffstat (limited to 'test/interop_load_font_test.cc')
-rw-r--r--test/interop_load_font_test.cc12
1 files changed, 10 insertions, 2 deletions
diff --git a/test/interop_load_font_test.cc b/test/interop_load_font_test.cc
index 0a5a0f6c..50e53a07 100644
--- a/test/interop_load_font_test.cc
+++ b/test/interop_load_font_test.cc
@@ -31,11 +31,19 @@
files in the program, then also delete it here.
*/
+
#include "interop_load_font_node.h"
+#include "warnings.h"
#include <libcxml/cxml.h>
+LIBDCP_DISABLE_WARNINGS
#include <libxml++/libxml++.h>
+LIBDCP_ENABLE_WARNINGS
#include <boost/test/unit_test.hpp>
+
+using std::make_shared;
+
+
/** Test dcp::InteropLoadFont's simple constructor */
BOOST_AUTO_TEST_CASE (interop_load_font_test1)
{
@@ -52,7 +60,7 @@ BOOST_AUTO_TEST_CASE (interop_load_font_test2)
text->set_attribute("Id", "my-great-id");
text->set_attribute("URI", "my-great-uri");
- dcp::InteropLoadFontNode lf (cxml::ConstNodePtr (new cxml::Node (text)));
+ dcp::InteropLoadFontNode lf (make_shared<cxml::Node>(text));
BOOST_CHECK_EQUAL (lf.id, "my-great-id");
}
@@ -65,7 +73,7 @@ BOOST_AUTO_TEST_CASE (interop_load_font_test3)
text->set_attribute("ID", "my-great-id");
text->set_attribute("URI", "my-great-uri");
- dcp::InteropLoadFontNode lf (cxml::ConstNodePtr (new cxml::Node (text)));
+ dcp::InteropLoadFontNode lf (make_shared<cxml::Node>(text));
BOOST_CHECK_EQUAL (lf.id, "my-great-id");
}