Tidying.
[dcpomatic.git] / src / lib / ext.cc
index 06add8d84c4546d26c28b0327f531e4d94236da7..1af6c137bf3f2945d22a0655579dec340a564eaa 100644 (file)
@@ -242,8 +242,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);