X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Ftools%2Fdcpomatic_playlist.cc;h=1dca8c182f53e19d0320b911c86e971b7c41d105;hb=8e1b0dfe3103867a749ff51156e3ed6547f298a0;hp=9027e7e30eb04ae61d7712d61bd9deb970191770;hpb=5c3a792617be3764806256020fce87af26b643c1;p=dcpomatic.git diff --git a/src/tools/dcpomatic_playlist.cc b/src/tools/dcpomatic_playlist.cc index 9027e7e30..1dca8c182 100644 --- a/src/tools/dcpomatic_playlist.cc +++ b/src/tools/dcpomatic_playlist.cc @@ -36,7 +36,6 @@ #include #include #include -#include using std::exception; using std::cout; @@ -45,10 +44,10 @@ using std::map; using std::make_pair; using std::vector; using boost::optional; -using boost::shared_ptr; -using boost::weak_ptr; +using std::shared_ptr; +using std::weak_ptr; using boost::bind; -using boost::dynamic_pointer_cast; +using std::dynamic_pointer_cast; #if BOOST_VERSION >= 106100 using namespace boost::placeholders; #endif @@ -171,7 +170,7 @@ private: } int N = 0; - BOOST_FOREACH (shared_ptr i, _playlists) { + for (auto i: _playlists) { if (i == playlist) { _list->SetItem (N, 0, std_to_wx(i->name())); } @@ -196,7 +195,7 @@ private: } catch (...) {} } - BOOST_FOREACH (shared_ptr i, _playlists) { + for (auto i: _playlists) { add_playlist_to_view (i); } } @@ -318,7 +317,7 @@ public: _playlist = playlist; _list->DeleteAllItems (); if (_playlist) { - BOOST_FOREACH (SPLEntry i, _playlist->get()) { + for (auto i: _playlist->get()) { add (i); } _name->SetValue (std_to_wx(_playlist->name()));