Remove all use of add_child() from xmlpp.
[dcpomatic.git] / src / lib / atmos_content.cc
index ada304dad1c698d5d167230b1f7b42ccbb6dc0ee..22bd431a22fe9e7102de2b67cadab94516d24dbe 100644 (file)
@@ -63,10 +63,10 @@ AtmosContent::from_xml (Content* parent, cxml::ConstNodePtr node)
 
 
 void
-AtmosContent::as_xml (xmlpp::Node* node) const
+AtmosContent::as_xml(xmlpp::Element* element) const
 {
-       node->add_child("AtmosLength")->add_child_text(dcp::raw_convert<string>(_length));
-       node->add_child("AtmosEditRate")->add_child_text(_edit_rate.as_string());
+       cxml::add_text_child(element, "AtmosLength", dcp::raw_convert<string>(_length));
+       cxml::add_text_child(element, "AtmosEditRate", _edit_rate.as_string());
 }