Replace xmlpp::Node::add_child with cxml::add_child.
[libdcp.git] / src / reel_subtitle_asset.cc
index d856a05e0bf1f9f7f1575b6feb7796dcec597aa6..436aa69f6c84458589d5c7eee36c37ed5770949b 100644 (file)
@@ -103,12 +103,12 @@ ReelSubtitleAsset::equals(shared_ptr<const ReelSubtitleAsset> other, EqualityOpt
 }
 
 
-xmlpp::Node *
-ReelSubtitleAsset::write_to_cpl (xmlpp::Node* node, Standard standard) const
+xmlpp::Element *
+ReelSubtitleAsset::write_to_cpl(xmlpp::Element* node, Standard standard) const
 {
        auto asset = ReelFileAsset::write_to_cpl (node, standard);
        if (_language) {
-               asset->add_child("Language")->add_child_text(*_language);
+               cxml::add_text_child(asset, "Language", *_language);
        }
        return asset;
 }