diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-02-09 00:29:00 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-03-20 18:21:14 +0100 |
| commit | 8f1f5db2b193fe1db7eeabda2a7b3eee03dde886 (patch) | |
| tree | 7cf76203fbfc7821721ed2224a1044d4f48d0fcd /src/reel.cc | |
| parent | a451df311d43ee161864bf2faa4c584a0afa8b8f (diff) | |
Replace xmlpp::Node::add_child with cxml::add_child.
Diffstat (limited to 'src/reel.cc')
| -rw-r--r-- | src/reel.cc | 6 |
1 files changed, 3 insertions, 3 deletions
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<const cxml::Node> 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); |
