FIXME: Remove all use of add_child() from xmlpp.
[dcpomatic.git] / src / lib / crop.cc
index d2d020a9fb36cb96d0f4bca83507432ba41deedf..a6f7d4bacd6948272a7db73e9a6d3ea8c7b2f241 100644 (file)
@@ -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));
 }