X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fext.cc;h=af5229f72f41c02941f6905911eb34495be91d61;hb=d311043bf3c1e3e7f41b314f7ab7c91ed7e5aa7f;hp=ec34f147216d97af091fdaaeec060c9620403fef;hpb=6e93ff6ac5b514d1b8dd9ccb2d6372576a52761a;p=dcpomatic.git diff --git a/src/lib/ext.cc b/src/lib/ext.cc index ec34f1472..af5229f72 100644 --- a/src/lib/ext.cc +++ b/src/lib/ext.cc @@ -248,8 +248,8 @@ copy (boost::filesystem::path from, boost::filesystem::path to, uint64_t& total_ } set_timestamps_to_now (cr); - for (directory_iterator i = directory_iterator(from); i != directory_iterator(); ++i) { - copy (i->path(), cr, total_remaining, total, copied_files, nanomsg); + for (auto i: directory_iterator(from)) { + copy (i.path(), cr, total_remaining, total, copied_files, nanomsg); } } else { string const write_digest = write (from, cr, total_remaining, total, nanomsg);