summaryrefslogtreecommitdiff
path: root/src/lib/crop.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-02-06 10:58:39 +0100
committerCarl Hetherington <cth@carlh.net>2024-02-22 22:46:02 +0100
commit6d95d9689831a74fade32038a808f206c03d8aa2 (patch)
treeb2d8fb562fd0da399f7d259fc82c1760b22a9402 /src/lib/crop.cc
parent3ffd0163026be24e5373e0674c3301ed37546e44 (diff)
FIXME: Remove all use of add_child() from xmlpp.no-add-child
Needs bump of libcxml.
Diffstat (limited to 'src/lib/crop.cc')
-rw-r--r--src/lib/crop.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/crop.cc b/src/lib/crop.cc
index d2d020a9f..a6f7d4bac 100644
--- a/src/lib/crop.cc
+++ b/src/lib/crop.cc
@@ -42,12 +42,12 @@ Crop::Crop(shared_ptr<cxml::Node> node)
void
-Crop::as_xml(xmlpp::Node* node) const
+Crop::as_xml(xmlpp::Element* element) const
{
- node->add_child("LeftCrop")->add_child_text(raw_convert<string>(left));
- node->add_child("RightCrop")->add_child_text(raw_convert<string>(right));
- node->add_child("TopCrop")->add_child_text(raw_convert<string>(top));
- node->add_child("BottomCrop")->add_child_text(raw_convert<string>(bottom));
+ cxml::add_text_child(element, "LeftCrop", raw_convert<string>(left));
+ cxml::add_text_child(element, "RightCrop", raw_convert<string>(right));
+ cxml::add_text_child(element, "TopCrop", raw_convert<string>(top));
+ cxml::add_text_child(element, "BottomCrop", raw_convert<string>(bottom));
}