summaryrefslogtreecommitdiff
path: root/src/subrip_reader.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-07-22 09:26:54 +0100
committerCarl Hetherington <cth@carlh.net>2016-07-22 09:26:54 +0100
commite245921978ee9c7c6e025c7416bdf808d789fa44 (patch)
tree17a6c18cc1d0294f7e87d7c6638d4cc23f81b7e5 /src/subrip_reader.cc
parentd7e0ebee4d94f10a8b80c1e61bf7b162c6a1ac12 (diff)
Use locked_sstream.
Diffstat (limited to 'src/subrip_reader.cc')
-rw-r--r--src/subrip_reader.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/subrip_reader.cc b/src/subrip_reader.cc
index e5f113d..94a48c0 100644
--- a/src/subrip_reader.cc
+++ b/src/subrip_reader.cc
@@ -24,6 +24,7 @@
#include "subrip_reader.h"
#include "exceptions.h"
#include "util.h"
+#include <locked_sstream.h>
#include <boost/algorithm/string.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/regex.hpp>
@@ -37,7 +38,6 @@ using std::vector;
using std::list;
using std::cout;
using std::hex;
-using std::stringstream;
using boost::lexical_cast;
using boost::to_upper;
using boost::optional;
@@ -47,7 +47,7 @@ using namespace sub;
/** @param s Subtitle string encoded in UTF-8 */
SubripReader::SubripReader (string const & s)
{
- stringstream str (s);
+ locked_stringstream str (s);
this->read (boost::bind (&get_line_stringstream, &str));
}