C++11 and whitespace cleanups.
[dcpomatic.git] / src / lib / ext.cc
index ec34f147216d97af091fdaaeec060c9620403fef..864a3e2e37d0ec370c8f53d5ccda29ceaae032db 100644 (file)
@@ -248,7 +248,7 @@ 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) {
+               for (auto i: directory_iterator(from)) {
                        copy (i->path(), cr, total_remaining, total, copied_files, nanomsg);
                }
        } else {