Another old libxml API instance.
authorCarl Hetherington <cth@carlh.net>
Sun, 19 May 2024 18:09:48 +0000 (20:09 +0200)
committerCarl Hetherington <cth@carlh.net>
Sun, 19 May 2024 18:09:48 +0000 (20:09 +0200)
src/lib/remembered_asset.cc

index f9c550af447261e6f0fc2175567aa02e51e8c91b..20b65970cbdbf0f513628418f42d2a2747affdad 100644 (file)
@@ -52,7 +52,7 @@ void
 RememberedAsset::as_xml(xmlpp::Element* parent) const
 {
        cxml::add_text_child(parent, "Filename", _filename.string());
-       auto period_node = parent->add_child("Period");
+       auto period_node = cxml::add_child(parent, "Period");
        cxml::add_text_child(period_node, "From", dcp::raw_convert<string>(_period.from.get()));
        cxml::add_text_child(period_node, "To", dcp::raw_convert<string>(_period.to.get()));
        cxml::add_text_child(parent, "Identifier", _identifier);