X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Foverlaps.cc;h=54077d96b0c5777bf63fafd7d4ece2e3c7275749;hb=76037799956725486be80524b1f72d7e3dc827ec;hp=983dc7a452f5da7cc7ae75f5f258234ff75830e0;hpb=e3d86593186ebf6c73a54b679332964d6b1b750b;p=dcpomatic.git diff --git a/src/lib/overlaps.cc b/src/lib/overlaps.cc index 983dc7a45..54077d96b 100644 --- a/src/lib/overlaps.cc +++ b/src/lib/overlaps.cc @@ -1,19 +1,20 @@ /* Copyright (C) 2013-2016 Carl Hetherington - This program is free software; you can redistribute it and/or modify + This file is part of DCP-o-matic. + + DCP-o-matic is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, + DCP-o-matic is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + along with DCP-o-matic. If not, see . */ @@ -25,12 +26,12 @@ using boost::shared_ptr; using boost::function; -ContentList overlaps (ContentList cl, function (shared_ptr)> part, DCPTime from, DCPTime to) +ContentList overlaps (ContentList cl, function)> part, DCPTime from, DCPTime to) { ContentList overlaps; DCPTimePeriod period (from, to); BOOST_FOREACH (shared_ptr i, cl) { - if (part(i) && DCPTimePeriod(i->position(), i->end()).overlaps (period)) { + if (part(i) && DCPTimePeriod(i->position(), i->end()).overlap(period)) { overlaps.push_back (i); } }