Fix some errant stringstreams.
[dcpomatic.git] / src / lib / subtitle_content.cc
index 3415ae613f5aee8175e122a9dea0d0517b791cf1..24b4694e8572067be466c549a6ee8db20ba0a0e9 100644 (file)
 #include "subtitle_content.h"
 #include "util.h"
 #include "exceptions.h"
+#include "safe_stringstream.h"
 
 #include "i18n.h"
 
 using std::string;
-using std::stringstream;
 using std::vector;
 using std::cout;
 using boost::shared_ptr;
@@ -160,7 +160,7 @@ SubtitleContent::set_subtitle_scale (double s)
 string
 SubtitleContent::identifier () const
 {
-       stringstream s;
+       SafeStringStream s;
        s << Content::identifier()
          << "_" << raw_convert<string> (subtitle_scale())
          << "_" << raw_convert<string> (subtitle_x_offset())