Remove all use of add_child() from xmlpp.
[dcpomatic.git] / src / lib / pixel_quanta.cc
index 7c1d285cffd3d0c1b55b0384f73cc582b10cd135..07690f3ac3537cd2e5b2528fef7c6278db4775d1 100644 (file)
@@ -34,8 +34,8 @@ PixelQuanta::PixelQuanta (cxml::ConstNodePtr node)
 void
 PixelQuanta::as_xml (xmlpp::Element* node) const
 {
-       node->add_child("X")->add_child_text(dcp::raw_convert<std::string>(x));
-       node->add_child("Y")->add_child_text(dcp::raw_convert<std::string>(y));
+       cxml::add_text_child(node, "X", dcp::raw_convert<std::string>(x));
+       cxml::add_text_child(node, "Y", dcp::raw_convert<std::string>(y));
 }