Add some const& to uses of auto.
[dcpomatic.git] / src / wx / video_panel.cc
index a9ef6e02dea1d36f051d774d94ae988dac86f966..8a02dff25b01acc08e958f05717124dce8f96ad0 100644 (file)
@@ -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());
                }
        }