diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-03-12 16:24:46 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-03-12 16:24:46 +0000 |
| commit | 5038e68ad9eb66e007211c8f1b707612a0c01e29 (patch) | |
| tree | 70d5aa5d3f414defc3d3cd0b34de0725bf8760a9 /src/subrip_reader.cc | |
| parent | a8b629085c404d7a947ed242fbf64d8e0e91edcd (diff) | |
Remove sstream dependency.
Diffstat (limited to 'src/subrip_reader.cc')
| -rw-r--r-- | src/subrip_reader.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/subrip_reader.cc b/src/subrip_reader.cc index 5625679..16ba0a5 100644 --- a/src/subrip_reader.cc +++ b/src/subrip_reader.cc @@ -24,7 +24,6 @@ #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> @@ -46,10 +45,9 @@ using boost::algorithm::replace_all; using namespace sub; /** @param s Subtitle string encoded in UTF-8 */ -SubripReader::SubripReader (string const & s) +SubripReader::SubripReader (string s) { - locked_stringstream str (s); - this->read (boost::bind (&get_line_stringstream, &str)); + this->read (boost::bind(&get_line_string, &s)); } /** @param f Subtitle file encoded in UTF-8 */ |
