for (auto cpl: cpls) {
int unsatisfied = 0;
- for (auto reel: cpl->reels()) {
+ for (auto const& reel: cpl->reels()) {
if (reel->main_picture() && !reel->main_picture()->asset_ref().resolved()) {
++unsatisfied;
}
}
flushed_audio = true;
- for (auto i: _audio_streams) {
+ for (auto const& i: _audio_streams) {
if (!i->flush()) {
flushed_audio = false;
}
{
pair<optional<dcp::LanguageTag>, vector<dcp::LanguageTag>> result;
for (auto i: content()) {
- for (auto text: i->text) {
+ for (auto const& text: i->text) {
if (text->use() && text->type() == TextType::OPEN_SUBTITLE && text->language()) {
if (text->language_is_additional()) {
result.second.push_back(text->language().get());
{
_left_changed_last = true;
if (_left_right_link->GetValue()) {
- for (auto i: _parent->selected_video()) {
+ for (auto const& i: _parent->selected_video()) {
i->video->set_right_crop (i->video->requested_left_crop());
}
}
{
_left_changed_last = false;
if (_left_right_link->GetValue()) {
- for (auto i: _parent->selected_video()) {
+ for (auto const& i: _parent->selected_video()) {
i->video->set_left_crop (i->video->requested_right_crop());
}
}