From e602f01f8a5bfca0acd730a301ffbc8a675fe5d7 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 9 Feb 2024 00:29:00 +0100 Subject: Replace xmlpp::Node::add_child with cxml::add_child. --- src/reel.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/reel.cc') diff --git a/src/reel.cc b/src/reel.cc index a8481d59..def3a4ae 100644 --- a/src/reel.cc +++ b/src/reel.cc @@ -141,9 +141,9 @@ Reel::Reel (std::shared_ptr node, dcp::Standard standard) xmlpp::Element * Reel::write_to_cpl (xmlpp::Element* node, Standard standard) const { - auto reel = node->add_child ("Reel"); - reel->add_child("Id")->add_child_text("urn:uuid:" + _id); - xmlpp::Element* asset_list = reel->add_child ("AssetList"); + auto reel = cxml::add_child(node, "Reel"); + cxml::add_text_child(reel, "Id", "urn:uuid:" + _id); + auto asset_list = cxml::add_child(reel, "AssetList"); if (_main_markers) { _main_markers->write_to_cpl (asset_list, standard); -- cgit v1.2.3