X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Fwx%2Fjob_manager_view.cc;h=6b341307d9e2fee6c8d928c9439569b2ec6f3e55;hp=a0430ca811128a9f3bd62e7adfa7c200e19611f9;hb=a5d004b0773f633401528392fc28e66d70e13ac8;hpb=c04fec82d25127fafa73c3daff87bece9aa8c8e8 diff --git a/src/wx/job_manager_view.cc b/src/wx/job_manager_view.cc index a0430ca81..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 #include using std::string; @@ -39,8 +38,8 @@ using std::list; using std::map; using std::min; using std::cout; -using boost::shared_ptr; -using boost::weak_ptr; +using std::shared_ptr; +using std::weak_ptr; using boost::bind; #if BOOST_VERSION >= 106100 using namespace boost::placeholders; @@ -109,9 +108,9 @@ JobManagerView::replace () list > new_job_records; - BOOST_FOREACH (shared_ptr i, JobManager::instance()->get()) { + for (auto i: JobManager::instance()->get()) { /* Find this job's JobView */ - BOOST_FOREACH (shared_ptr 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 i, _job_records) { + for (auto i: _job_records) { i->detach (); } _job_records = new_job_records; - BOOST_FOREACH (shared_ptr 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 i, _job_records) { + for (auto i: _job_records) { i->job_list_changed (); } }