FIXME: Remove all use of add_child() from xmlpp.
[dcpomatic.git] / src / lib / audio_point.cc
index 1f32d25fce3e2e35bbb0ff193a37617ad1284613..036904520ad1bf81c4dcf507a52c6ff097e5785f 100644 (file)
@@ -72,6 +72,6 @@ AudioPoint::operator= (AudioPoint const & other)
 void
 AudioPoint::as_xml (xmlpp::Element* parent) const
 {
-       parent->add_child("Peak")->add_child_text(raw_convert<string>(_data[PEAK]));
-       parent->add_child("RMS")->add_child_text(raw_convert<string>(_data[RMS]));
+       cxml::add_text_child(parent, "Peak", raw_convert<string>(_data[PEAK]));
+       cxml::add_text_child(parent, "RMS", raw_convert<string>(_data[RMS]));
 }