FIXME: Remove all use of add_child() from xmlpp.
[dcpomatic.git] / src / lib / playlist.cc
index 85957e106803be886e4f5a85016f15cc21282282..7f83e94740bc4b6dc3b4837090aab81bb1e4f692 100644 (file)
@@ -282,10 +282,10 @@ Playlist::set_from_xml (shared_ptr<const Film> film, cxml::ConstNodePtr node, in
  *  @param with_content_paths true to include &lt;Path&gt; nodes in &lt;Content&gt; nodes, false to omit them.
  */
 void
-Playlist::as_xml (xmlpp::Node* node, bool with_content_paths)
+Playlist::as_xml(xmlpp::Element* element, bool with_content_paths)
 {
        for (auto i: content()) {
-               i->as_xml (node->add_child ("Content"), with_content_paths);
+               i->as_xml(cxml::add_child(element, "Content"), with_content_paths);
        }
 }