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/tools/dcpomatic_playlist.cc | |
| parent | dd9be86db6cde0afa5da0d1d1ac43b42e05dca26 (diff) | |
BOOST_FOREACH.
Diffstat (limited to 'src/tools/dcpomatic_playlist.cc')
| -rw-r--r-- | src/tools/dcpomatic_playlist.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/tools/dcpomatic_playlist.cc b/src/tools/dcpomatic_playlist.cc index 261f08972..1dca8c182 100644 --- a/src/tools/dcpomatic_playlist.cc +++ b/src/tools/dcpomatic_playlist.cc @@ -36,7 +36,6 @@ #include <wx/imaglist.h> #include <wx/spinctrl.h> #include <wx/preferences.h> -#include <boost/foreach.hpp> using std::exception; using std::cout; @@ -171,7 +170,7 @@ private: } int N = 0; - BOOST_FOREACH (shared_ptr<SignalSPL> 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<SignalSPL> 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())); |
