summaryrefslogtreecommitdiff
path: root/src/interop_subtitle_asset.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-10-09 18:42:23 +0100
committerCarl Hetherington <cth@carlh.net>2015-10-09 18:42:23 +0100
commiteaece234969e2d3cb784df764a0dc766eeff2099 (patch)
tree72d8fea96f6b033fbbcef4480964c76f73ca3bae /src/interop_subtitle_asset.cc
parentc9530d613712f2ae5e6bbb14f4a329a4dd04e139 (diff)
Remove glibmm dependency.
Diffstat (limited to 'src/interop_subtitle_asset.cc')
-rw-r--r--src/interop_subtitle_asset.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/interop_subtitle_asset.cc b/src/interop_subtitle_asset.cc
index c6479612..bf493fda 100644
--- a/src/interop_subtitle_asset.cc
+++ b/src/interop_subtitle_asset.cc
@@ -66,7 +66,7 @@ InteropSubtitleAsset::InteropSubtitleAsset ()
}
-Glib::ustring
+string
InteropSubtitleAsset::xml_as_string () const
{
xmlpp::Document doc;
@@ -151,8 +151,9 @@ InteropSubtitleAsset::write (boost::filesystem::path p) const
throw FileError ("Could not open file for writing", p, -1);
}
- Glib::ustring const s = xml_as_string ();
- fwrite (s.c_str(), 1, s.bytes(), f);
+ string const s = xml_as_string ();
+ /* length() here gives bytes not characters */
+ fwrite (s.c_str(), 1, s.length(), f);
fclose (f);
_file = p;