diff options
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/film.cc | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/lib/film.cc b/src/lib/film.cc index f7dd0cbe4..a8d8de5c3 100644 --- a/src/lib/film.cc +++ b/src/lib/film.cc @@ -1296,12 +1296,6 @@ Film::j2c_path (int reel, Frame frame, Eyes eyes, bool tmp) const return file (p); } -static -bool -cpl_summary_compare (CPLSummary const & a, CPLSummary const & b) -{ - return a.last_write_time > b.last_write_time; -} /** Find all the DCPs in our directory that can be dcp::DCP::read() and return details of their CPLs. * The list will be returned in reverse order of timestamp (i.e. most recent first). @@ -1330,7 +1324,9 @@ Film::cpls () const } } - sort (out.begin(), out.end(), cpl_summary_compare); + sort(out.begin(), out.end(), [](CPLSummary const& a, CPLSummary const& b) { + return a.last_write_time > b.last_write_time; + }); return out; } |
