summaryrefslogtreecommitdiff
path: root/src/lib/check_content_change_job.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-01-04 21:32:13 +0100
committerCarl Hetherington <cth@carlh.net>2021-01-07 23:27:56 +0100
commita5d004b0773f633401528392fc28e66d70e13ac8 (patch)
tree9f83ff2ab353f5a63918210d4930d0ead228375e /src/lib/check_content_change_job.cc
parentdd9be86db6cde0afa5da0d1d1ac43b42e05dca26 (diff)
BOOST_FOREACH.
Diffstat (limited to 'src/lib/check_content_change_job.cc')
-rw-r--r--src/lib/check_content_change_job.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/check_content_change_job.cc b/src/lib/check_content_change_job.cc
index 45a662e37..c4d050c0e 100644
--- a/src/lib/check_content_change_job.cc
+++ b/src/lib/check_content_change_job.cc
@@ -23,7 +23,6 @@
#include "examine_content_job.h"
#include "content.h"
#include "film.h"
-#include <boost/foreach.hpp>
#include <iostream>
#include "i18n.h"
@@ -66,7 +65,7 @@ CheckContentChangeJob::run ()
list<shared_ptr<Content> > changed;
- BOOST_FOREACH (shared_ptr<Content> i, _film->content()) {
+ for (auto i: _film->content()) {
bool ic = false;
for (size_t j = 0; j < i->number_of_paths(); ++j) {
if (boost::filesystem::last_write_time(i->path(j)) != i->last_write_time(j)) {
@@ -84,7 +83,7 @@ CheckContentChangeJob::run ()
if (!changed.empty()) {
if (_gui) {
- BOOST_FOREACH (shared_ptr<Content> i, changed) {
+ for (auto i: changed) {
JobManager::instance()->add(shared_ptr<Job>(new ExamineContentJob(_film, i)));
}
string m = _("Some files have been changed since they were added to the project.\n\nThese files will now be re-examined, so you may need to check their settings.");