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/ssa_reader.cc | |
| parent | a8b629085c404d7a947ed242fbf64d8e0e91edcd (diff) | |
Remove sstream dependency.
Diffstat (limited to 'src/ssa_reader.cc')
| -rw-r--r-- | src/ssa_reader.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/ssa_reader.cc b/src/ssa_reader.cc index a1672d8..f592b9e 100644 --- a/src/ssa_reader.cc +++ b/src/ssa_reader.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2016 Carl Hetherington <cth@carlh.net> + Copyright (C) 2016-2019 Carl Hetherington <cth@carlh.net> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -22,7 +22,6 @@ #include "sub_assert.h" #include "raw_convert.h" #include "subtitle.h" -#include <locked_sstream.h> #include <boost/algorithm/string.hpp> #include <boost/bind.hpp> #include <boost/foreach.hpp> @@ -40,10 +39,9 @@ using namespace boost::algorithm; using namespace sub; /** @param s Subtitle string encoded in UTF-8 */ -SSAReader::SSAReader (string const & s) +SSAReader::SSAReader (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 */ |
