diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-10-28 23:04:26 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-10-28 23:04:39 +0200 |
| commit | 4dee86bbff8cb842aff4acb80d429ca8a22d2aa3 (patch) | |
| tree | 4dba85a17280f7aa7fc1b0a0ce3deed7f4d9cc3f /src/wx/video_panel.cc | |
| parent | 641a2ce2f72f451c73b1120b5a1301dd4c05c983 (diff) | |
Add some const& to uses of auto.
Diffstat (limited to 'src/wx/video_panel.cc')
| -rw-r--r-- | src/wx/video_panel.cc | 4 |
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()); } } |
