summaryrefslogtreecommitdiff
path: root/src/ssa_reader.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-01-13 13:07:32 +0100
committerCarl Hetherington <cth@carlh.net>2021-01-13 13:07:32 +0100
commit4518eac6c41c51e781d2f17e0f26fe7713ac93c1 (patch)
tree3a8f6ee88962d8c49a264ff1507643ed9f733200 /src/ssa_reader.cc
parentcafee6f81257fa81ee302b5d3ffa82213a0a6a44 (diff)
Remove use of boost foreach.
Diffstat (limited to 'src/ssa_reader.cc')
-rw-r--r--src/ssa_reader.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ssa_reader.cc b/src/ssa_reader.cc
index 072fff8..4a9be0e 100644
--- a/src/ssa_reader.cc
+++ b/src/ssa_reader.cc
@@ -25,7 +25,6 @@
#include "compose.hpp"
#include <boost/algorithm/string.hpp>
#include <boost/bind.hpp>
-#include <boost/foreach.hpp>
#include <iostream>
#include <vector>
@@ -439,7 +438,7 @@ SSAReader::read (function<optional<string> ()> get_line)
case EVENTS:
if (type == "Format") {
split (event_format, body, is_any_of (","));
- BOOST_FOREACH (string& i, event_format) {
+ for (auto& i: event_format) {
trim (i);
}
} else if (type == "Dialogue") {
@@ -488,7 +487,7 @@ SSAReader::read (function<optional<string> ()> get_line)
} else if (event_format[i] == "MarginV") {
sub.vertical_position.proportional = raw_convert<float>(event[i]) / play_res_y;
} else if (event_format[i] == "Text") {
- BOOST_FOREACH (sub::RawSubtitle j, parse_line (sub, event[i], play_res_x, play_res_y)) {
+ for (auto j: parse_line (sub, event[i], play_res_x, play_res_y)) {
_subs.push_back (j);
}
}