Rename verify_text_timing -> verify_text_details.
[libdcp.git] / src / interop_subtitle_asset.cc
index 938c028e79239c55adb809d560c67e8b0d5a69ba..a7be5d1a4eecab08c449fe0a464b899d23b5fe56 100644 (file)
  */
 
 
-#include "interop_subtitle_asset.h"
+#include "compose.hpp"
+#include "dcp_assert.h"
+#include "font_asset.h"
 #include "interop_load_font_node.h"
-#include "subtitle_asset_internal.h"
-#include "xml.h"
+#include "interop_subtitle_asset.h"
 #include "raw_convert.h"
-#include "util.h"
-#include "font_asset.h"
-#include "dcp_assert.h"
-#include "compose.hpp"
+#include "subtitle_asset_internal.h"
 #include "subtitle_image.h"
+#include "util.h"
+#include "warnings.h"
+#include "xml.h"
+LIBDCP_DISABLE_WARNINGS
 #include <libxml++/libxml++.h>
+LIBDCP_ENABLE_WARNINGS
 #include <boost/weak_ptr.hpp>
 #include <cmath>
 #include <cstdio>
@@ -196,9 +199,9 @@ InteropSubtitleAsset::write (boost::filesystem::path p) const
                throw FileError ("Could not open file for writing", p, -1);
        }
 
-       auto const s = xml_as_string ();
+       _raw_xml = xml_as_string ();
        /* length() here gives bytes not characters */
-       fwrite (s.c_str(), 1, s.length(), f);
+       fwrite (_raw_xml->c_str(), 1, _raw_xml->length(), f);
        fclose (f);
 
        _file = p;