summaryrefslogtreecommitdiff
path: root/src/subtitle_asset.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/subtitle_asset.cc')
-rw-r--r--src/subtitle_asset.cc7
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