FIXME: Remove all use of add_child() from xmlpp.
[dcpomatic.git] / src / lib / ffmpeg_stream.cc
index 47f71d1195bcbb2a169b5661c31171a8bd165c11..800c45eb6b45685d5258169074e77bace1a0eca6 100644 (file)
@@ -40,10 +40,10 @@ FFmpegStream::FFmpegStream (cxml::ConstNodePtr node)
 }
 
 void
-FFmpegStream::as_xml (xmlpp::Node* root) const
+FFmpegStream::as_xml(xmlpp::Element* root) const
 {
-       root->add_child("Name")->add_child_text (name);
-       root->add_child("Id")->add_child_text (raw_convert<string> (_id));
+       cxml::add_text_child(root, "Name", name);
+       cxml::add_text_child(root, "Id", raw_convert<string>(_id));
 }
 
 bool