summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/dcp_examiner.cc2
-rw-r--r--src/lib/ffmpeg_file_encoder.cc2
-rw-r--r--src/lib/film.cc2
-rw-r--r--src/wx/video_panel.cc4
4 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/dcp_examiner.cc b/src/lib/dcp_examiner.cc
index a9a6dee5e..0f9ae9544 100644
--- a/src/lib/dcp_examiner.cc
+++ b/src/lib/dcp_examiner.cc
@@ -83,7 +83,7 @@ DCPExaminer::DCPExaminer (shared_ptr<const DCPContent> content, bool tolerant)
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;
}
diff --git a/src/lib/ffmpeg_file_encoder.cc b/src/lib/ffmpeg_file_encoder.cc
index f96a9458e..7d89b7bd0 100644
--- a/src/lib/ffmpeg_file_encoder.cc
+++ b/src/lib/ffmpeg_file_encoder.cc
@@ -388,7 +388,7 @@ FFmpegFileEncoder::flush ()
}
flushed_audio = true;
- for (auto i: _audio_streams) {
+ for (auto const& i: _audio_streams) {
if (!i->flush()) {
flushed_audio = false;
}
diff --git a/src/lib/film.cc b/src/lib/film.cc
index 2780dbf5c..b4ad0d0f4 100644
--- a/src/lib/film.cc
+++ b/src/lib/film.cc
@@ -775,7 +775,7 @@ Film::subtitle_languages () const
{
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());
diff --git a/src/wx/video_panel.cc b/src/wx/video_panel.cc
index a9ef6e02d..8a02dff25 100644
--- a/src/wx/video_panel.cc
+++ b/src/wx/video_panel.cc
@@ -766,7 +766,7 @@ VideoPanel::left_crop_changed ()
{
_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());
}
}
@@ -778,7 +778,7 @@ VideoPanel::right_crop_changed ()
{
_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());
}
}