diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-02-06 10:58:39 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-03-20 18:25:09 +0100 |
| commit | 0e5013e1a96af81e4b501ff0c3192c10a061a2c8 (patch) | |
| tree | 49acd96a9e6c70919a6d2c40fc14688ac6319e1b /src/lib/pixel_quanta.cc | |
| parent | 45fc375d656e99218ca8ec3281aa2605e148b521 (diff) | |
Remove all use of add_child() from xmlpp.
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)); } |
