FIXME: Remove all use of add_child() from xmlpp.
[dcpomatic.git] / src / lib / screen.cc
index febf9085c3d344af6a77487c5aed1c04a60a7148..fc75aee06b82edca00792e86ae5af635fadf6522 100644 (file)
@@ -57,7 +57,7 @@ Screen::as_xml (xmlpp::Element* parent) const
 {
        KDMRecipient::as_xml (parent);
        for (auto i: trusted_devices) {
-               parent->add_child("TrustedDevice")->add_child_text(i.as_string());
+               cxml::add_text_child(parent, "TrustedDevice", i.as_string());
        }
 }