X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fext.cc;fp=src%2Flib%2Fext.cc;h=af5229f72f41c02941f6905911eb34495be91d61;hp=ec34f147216d97af091fdaaeec060c9620403fef;hb=d311043bf3c1e3e7f41b314f7ab7c91ed7e5aa7f;hpb=8c39f950ec8f8b3cf4d258279ab499d7e71dafc8 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);