- ContentList c = _parent->selected ();
- for (ContentList::iterator i = c.begin(); i != c.end(); ++i) {
- FrameRateChange const frc = _parent->film()->active_frame_rate_change ((*i)->position ());
- (*i)->set_trim_end (
- ContentTime ((*i)->full_length() - _play_length->get (_parent->film()->video_frame_rate()), frc)
- - (*i)->trim_start ()
+ BOOST_FOREACH (shared_ptr<Content> i, _parent->selected ()) {
+ FrameRateChange const frc = _parent->film()->active_frame_rate_change (i->position ());
+ i->set_trim_end (
+ ContentTime (i->full_length() - _play_length->get (_parent->film()->video_frame_rate()), frc)
+ - i->trim_start ()