diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-09-07 15:02:08 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-09-14 10:21:13 +0100 |
| commit | 4704d088ae03ab2b5f73ceed577fd84935ad0640 (patch) | |
| tree | df66d16a04bb76dff4d4cddc35eda01a7aa6033d /src/wx/hints_dialog.cc | |
| parent | 38e9419ea023224b21577d906084bbb3501e8aea (diff) | |
Some use of BOOST_FOREACH.
Diffstat (limited to 'src/wx/hints_dialog.cc')
| -rw-r--r-- | src/wx/hints_dialog.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/wx/hints_dialog.cc b/src/wx/hints_dialog.cc index 36c9eb6c8..66a53c559 100644 --- a/src/wx/hints_dialog.cc +++ b/src/wx/hints_dialog.cc @@ -109,8 +109,8 @@ HintsDialog::film_changed () int flat_or_narrower = 0; int scope = 0; - for (ContentList::const_iterator i = content.begin(); i != content.end(); ++i) { - shared_ptr<VideoContent> vc = dynamic_pointer_cast<VideoContent> (*i); + BOOST_FOREACH (shared_ptr<const Content> i, content) { + shared_ptr<const VideoContent> vc = dynamic_pointer_cast<const VideoContent> (i); if (vc) { Ratio const * r = vc->scale().ratio (); if (r && r->id() == "239") { @@ -146,8 +146,8 @@ HintsDialog::film_changed () } int vob = 0; - for (ContentList::const_iterator i = content.begin(); i != content.end(); ++i) { - if (boost::algorithm::starts_with ((*i)->path(0).filename().string(), "VTS_")) { + BOOST_FOREACH (shared_ptr<const Content> i, content) { + if (boost::algorithm::starts_with (i->path(0).filename().string(), "VTS_")) { ++vob; } } @@ -159,8 +159,8 @@ HintsDialog::film_changed () } int three_d = 0; - for (ContentList::const_iterator i = content.begin(); i != content.end(); ++i) { - shared_ptr<const VideoContent> vc = dynamic_pointer_cast<const VideoContent> (*i); + BOOST_FOREACH (shared_ptr<const Content> i, content) { + shared_ptr<const VideoContent> vc = dynamic_pointer_cast<const VideoContent> (i); if (vc && vc->video_frame_type() != VIDEO_FRAME_TYPE_2D) { ++three_d; } |
