diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-02-09 00:29:00 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-02-25 19:59:43 +0100 |
| commit | e602f01f8a5bfca0acd730a301ffbc8a675fe5d7 (patch) | |
| tree | 9a73953fd7d788c11cb959f5df39a57d67cdf5de /src/rating.cc | |
| parent | b395d79069cf64fd3a552fb843a31affa57662de (diff) | |
Replace xmlpp::Node::add_child with cxml::add_child.no-add-child
Diffstat (limited to 'src/rating.cc')
| -rw-r--r-- | src/rating.cc | 4 |
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); } |
