X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Foverlaps.cc;h=09e7f63ac089ebbfcdffb7406b383a0cbaf64a7c;hb=8963f0007af1a312017b9627c18b82ec2a577591;hp=f5ccd48d0276db1153e1129f7e2ca1633bd2bbd9;hpb=dd9be86db6cde0afa5da0d1d1ac43b42e05dca26;p=dcpomatic.git diff --git a/src/lib/overlaps.cc b/src/lib/overlaps.cc index f5ccd48d0..09e7f63ac 100644 --- a/src/lib/overlaps.cc +++ b/src/lib/overlaps.cc @@ -21,17 +21,16 @@ #include "overlaps.h" #include "types.h" #include "content.h" -#include using std::shared_ptr; -using boost::function; +using std::function; using namespace dcpomatic; ContentList overlaps (shared_ptr film, ContentList cl, function)> part, DCPTime from, DCPTime to) { ContentList overlaps; DCPTimePeriod period (from, to); - BOOST_FOREACH (shared_ptr i, cl) { + for (auto i: cl) { if (part(i) && DCPTimePeriod(i->position(), i->end(film)).overlap(period)) { overlaps.push_back (i); }