Remove all use of add_child() from xmlpp.
[dcpomatic.git] / src / lib / atmos_mxf_content.cc
index 82c20e88f7bd8e7c723e49216b1d4aeeabe3bc4d..1283961ee121ad5ad4e5466500c69106475e7ae7 100644 (file)
@@ -98,11 +98,11 @@ AtmosMXFContent::summary () const
 
 
 void
-AtmosMXFContent::as_xml (xmlpp::Node* node, bool with_paths) const
+AtmosMXFContent::as_xml(xmlpp::Element* element, bool with_paths) const
 {
-       node->add_child("Type")->add_child_text("AtmosMXF");
-       Content::as_xml (node, with_paths);
-       atmos->as_xml (node);
+       cxml::add_text_child(element, "Type", "AtmosMXF");
+       Content::as_xml(element, with_paths);
+       atmos->as_xml(element);
 }