summaryrefslogtreecommitdiff
path: root/src/lib/playlist.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-02-06 10:58:39 +0100
committerCarl Hetherington <cth@carlh.net>2024-03-20 18:25:09 +0100
commit0e5013e1a96af81e4b501ff0c3192c10a061a2c8 (patch)
tree49acd96a9e6c70919a6d2c40fc14688ac6319e1b /src/lib/playlist.cc
parent45fc375d656e99218ca8ec3281aa2605e148b521 (diff)
Remove all use of add_child() from xmlpp.
Diffstat (limited to 'src/lib/playlist.cc')
-rw-r--r--src/lib/playlist.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/playlist.cc b/src/lib/playlist.cc
index 85957e106..7f83e9474 100644
--- a/src/lib/playlist.cc
+++ b/src/lib/playlist.cc
@@ -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);
}
}