Replace xmlpp::Node::add_child with cxml::add_child.
[libdcp.git] / src / rating.cc
index 21960365f0c6637a0c2794fa7f9cd3d638705c35..156d5ad02fd811519980058f5144985278e7f3e1 100644 (file)
@@ -61,8 +61,8 @@ Rating::Rating (cxml::ConstNodePtr node)
 void
 Rating::as_xml (xmlpp::Element* parent) const
 {
-       parent->add_child("Agency")->add_child_text(agency);
-       parent->add_child("Label")->add_child_text(label);
+       cxml::add_text_child(parent, "Agency", agency);
+       cxml::add_text_child(parent, "Label", label);
 }