FIXME: Remove all use of add_child() from xmlpp.
[dcpomatic.git] / src / lib / audio_point.cc
index abf8485e34f3dc997753a067ae1fe741872b83ba..036904520ad1bf81c4dcf507a52c6ff097e5785f 100644 (file)
 
 
 #include "audio_point.h"
-#include "warnings.h"
 #include <dcp/raw_convert.h>
-DCPOMATIC_DISABLE_WARNINGS
+#include <dcp/warnings.h>
+LIBDCP_DISABLE_WARNINGS
 #include <libxml++/libxml++.h>
-DCPOMATIC_ENABLE_WARNINGS
+LIBDCP_ENABLE_WARNINGS
 
 
 using std::string;
@@ -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]));
 }