diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-01-04 21:32:13 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-01-07 23:27:56 +0100 |
| commit | a5d004b0773f633401528392fc28e66d70e13ac8 (patch) | |
| tree | 9f83ff2ab353f5a63918210d4930d0ead228375e /src/lib/dcpomatic_time.h | |
| parent | dd9be86db6cde0afa5da0d1d1ac43b42e05dca26 (diff) | |
BOOST_FOREACH.
Diffstat (limited to 'src/lib/dcpomatic_time.h')
| -rw-r--r-- | src/lib/dcpomatic_time.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/dcpomatic_time.h b/src/lib/dcpomatic_time.h index 897b725bd..62d8a28cc 100644 --- a/src/lib/dcpomatic_time.h +++ b/src/lib/dcpomatic_time.h @@ -28,7 +28,6 @@ #include "frame_rate_change.h" #include "dcpomatic_assert.h" #include <boost/optional.hpp> -#include <boost/foreach.hpp> #include <stdint.h> #include <cmath> #include <ostream> @@ -319,9 +318,9 @@ std::list<TimePeriod<T> > subtract (TimePeriod<T> A, std::list<TimePeriod<T> > c std::list<TimePeriod<T> > result; result.push_back (A); - BOOST_FOREACH (TimePeriod<T> i, B) { + for (auto i: B) { std::list<TimePeriod<T> > new_result; - BOOST_FOREACH (TimePeriod<T> j, result) { + for (auto j: result) { boost::optional<TimePeriod<T> > ov = i.overlap (j); if (ov) { if (*ov == i) { |
