summaryrefslogtreecommitdiff
path: root/src/rating.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-02-09 00:29:00 +0100
committerCarl Hetherington <cth@carlh.net>2024-03-20 18:21:14 +0100
commit8f1f5db2b193fe1db7eeabda2a7b3eee03dde886 (patch)
tree7cf76203fbfc7821721ed2224a1044d4f48d0fcd /src/rating.cc
parenta451df311d43ee161864bf2faa4c584a0afa8b8f (diff)
Replace xmlpp::Node::add_child with cxml::add_child.
Diffstat (limited to 'src/rating.cc')
-rw-r--r--src/rating.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rating.cc b/src/rating.cc
index 21960365..156d5ad0 100644
--- a/src/rating.cc
+++ b/src/rating.cc
@@ -61,8 +61,8 @@ Rating::Rating (cxml::ConstNodePtr node)
void
Rating::as_xml (xmlpp::Element* parent) const
{
- parent->add_child("Agency")->add_child_text(agency);
- parent->add_child("Label")->add_child_text(label);
+ cxml::add_text_child(parent, "Agency", agency);
+ cxml::add_text_child(parent, "Label", label);
}