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_file_asset.cc | |
| parent | a451df311d43ee161864bf2faa4c584a0afa8b8f (diff) | |
Replace xmlpp::Node::add_child with cxml::add_child.
Diffstat (limited to 'src/reel_file_asset.cc')
| -rw-r--r-- | src/reel_file_asset.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/reel_file_asset.cc b/src/reel_file_asset.cc index 5fefda27..8fed8012 100644 --- a/src/reel_file_asset.cc +++ b/src/reel_file_asset.cc @@ -94,15 +94,15 @@ ReelFileAsset::file_asset_equals(shared_ptr<const ReelFileAsset> other, Equality } -xmlpp::Node * -ReelFileAsset::write_to_cpl (xmlpp::Node* node, Standard standard) const +xmlpp::Element* +ReelFileAsset::write_to_cpl(xmlpp::Element* node, Standard standard) const { - auto asset = ReelAsset::write_to_cpl (node, standard); + auto asset = ReelAsset::write_to_cpl(node, standard); if (_key_id) { - asset->add_child("KeyId")->add_child_text("urn:uuid:" + *_key_id); + cxml::add_text_child(asset, "KeyId", "urn:uuid:" + *_key_id); } if (_hash) { - asset->add_child("Hash")->add_child_text(*_hash); + cxml::add_text_child(asset, "Hash", *_hash); } return asset; } |
