diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-02-06 10:58:39 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-02-22 22:46:02 +0100 |
| commit | 6d95d9689831a74fade32038a808f206c03d8aa2 (patch) | |
| tree | b2d8fb562fd0da399f7d259fc82c1760b22a9402 /src/lib/pixel_quanta.cc | |
| parent | 3ffd0163026be24e5373e0674c3301ed37546e44 (diff) | |
FIXME: Remove all use of add_child() from xmlpp.no-add-child
Needs bump of libcxml.
Diffstat (limited to 'src/lib/pixel_quanta.cc')
| -rw-r--r-- | src/lib/pixel_quanta.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/pixel_quanta.cc b/src/lib/pixel_quanta.cc index 7c1d285cf..07690f3ac 100644 --- a/src/lib/pixel_quanta.cc +++ b/src/lib/pixel_quanta.cc @@ -34,8 +34,8 @@ PixelQuanta::PixelQuanta (cxml::ConstNodePtr node) void PixelQuanta::as_xml (xmlpp::Element* node) const { - node->add_child("X")->add_child_text(dcp::raw_convert<std::string>(x)); - node->add_child("Y")->add_child_text(dcp::raw_convert<std::string>(y)); + cxml::add_text_child(node, "X", dcp::raw_convert<std::string>(x)); + cxml::add_text_child(node, "Y", dcp::raw_convert<std::string>(y)); } |
