diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-09-12 10:40:10 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-09-12 10:40:10 +0100 |
| commit | 599af5820d963f9e14516182524f05285c77f66e (patch) | |
| tree | 74ed535ed1e12e03fc701f323a2878dec4201325 /src/subtitle_asset.cc | |
| parent | da99d514dea384babf98d5a47cca3ab864e9a4e4 (diff) | |
Remove mysterious use of locked_stringstream.
Diffstat (limited to 'src/subtitle_asset.cc')
| -rw-r--r-- | src/subtitle_asset.cc | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/subtitle_asset.cc b/src/subtitle_asset.cc index 02dfd80f..ac87148d 100644 --- a/src/subtitle_asset.cc +++ b/src/subtitle_asset.cc @@ -111,12 +111,7 @@ optional_number_attribute (xmlpp::Element const * node, string name) std::string t = s.get (); boost::erase_all (t, " "); - locked_stringstream u; - u.imbue (std::locale::classic ()); - u << t; - T n; - u >> n; - return n; + return raw_convert<T> (t); } SubtitleAsset::ParseState |
