diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-01-04 21:32:13 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-01-07 23:27:56 +0100 |
| commit | a5d004b0773f633401528392fc28e66d70e13ac8 (patch) | |
| tree | 9f83ff2ab353f5a63918210d4930d0ead228375e /src/wx/job_manager_view.cc | |
| parent | dd9be86db6cde0afa5da0d1d1ac43b42e05dca26 (diff) | |
BOOST_FOREACH.
Diffstat (limited to 'src/wx/job_manager_view.cc')
| -rw-r--r-- | src/wx/job_manager_view.cc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/wx/job_manager_view.cc b/src/wx/job_manager_view.cc index 3c0f44675..6b341307d 100644 --- a/src/wx/job_manager_view.cc +++ b/src/wx/job_manager_view.cc @@ -31,7 +31,6 @@ #include "lib/util.h" #include "lib/exceptions.h" #include "lib/compose.hpp" -#include <boost/foreach.hpp> #include <iostream> using std::string; @@ -109,9 +108,9 @@ JobManagerView::replace () list<shared_ptr<JobView> > new_job_records; - BOOST_FOREACH (shared_ptr<Job> i, JobManager::instance()->get()) { + for (auto i: JobManager::instance()->get()) { /* Find this job's JobView */ - BOOST_FOREACH (shared_ptr<JobView> j, _job_records) { + for (auto j: _job_records) { if (j->job() == i) { new_job_records.push_back (j); break; @@ -119,13 +118,13 @@ JobManagerView::replace () } } - BOOST_FOREACH (shared_ptr<JobView> i, _job_records) { + for (auto i: _job_records) { i->detach (); } _job_records = new_job_records; - BOOST_FOREACH (shared_ptr<JobView> i, _job_records) { + for (auto i: _job_records) { i->insert (i->insert_position ()); } @@ -135,7 +134,7 @@ JobManagerView::replace () void JobManagerView::job_list_changed () { - BOOST_FOREACH (shared_ptr<JobView> i, _job_records) { + for (auto i: _job_records) { i->job_list_changed (); } } |
