summaryrefslogtreecommitdiff
path: root/src/wx/video_panel.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-10-28 23:04:26 +0200
committerCarl Hetherington <cth@carlh.net>2023-10-28 23:04:39 +0200
commit4dee86bbff8cb842aff4acb80d429ca8a22d2aa3 (patch)
tree4dba85a17280f7aa7fc1b0a0ce3deed7f4d9cc3f /src/wx/video_panel.cc
parent641a2ce2f72f451c73b1120b5a1301dd4c05c983 (diff)
Add some const& to uses of auto.
Diffstat (limited to 'src/wx/video_panel.cc')
-rw-r--r--src/wx/video_panel.cc4
1 files changed, 2 insertions, 2 deletions
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());
}
}