summaryrefslogtreecommitdiff
path: root/src/lib/decoder.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-01-04 21:32:13 +0100
committerCarl Hetherington <cth@carlh.net>2021-01-07 23:27:56 +0100
commita5d004b0773f633401528392fc28e66d70e13ac8 (patch)
tree9f83ff2ab353f5a63918210d4930d0ead228375e /src/lib/decoder.cc
parentdd9be86db6cde0afa5da0d1d1ac43b42e05dca26 (diff)
BOOST_FOREACH.
Diffstat (limited to 'src/lib/decoder.cc')
-rw-r--r--src/lib/decoder.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/decoder.cc b/src/lib/decoder.cc
index a53118061..bf0bd1a26 100644
--- a/src/lib/decoder.cc
+++ b/src/lib/decoder.cc
@@ -60,7 +60,7 @@ Decoder::position () const
which can cause bugs like #1581.
*/
if (!pos) {
- BOOST_FOREACH (shared_ptr<TextDecoder> i, text) {
+ for (auto i: text) {
if (!i->ignore() && (!pos || i->position(f) < *pos)) {
pos = i->position(f);
}
@@ -79,7 +79,7 @@ Decoder::seek (ContentTime, bool)
if (audio) {
audio->seek ();
}
- BOOST_FOREACH (shared_ptr<TextDecoder> i, text) {
+ for (auto i: text) {
i->seek ();
}
}