aboutsummaryrefslogtreecommitdiffstats
path: root/utils/v4l2-ctl/v4l2-ctl-streaming.cpp
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2020-07-26 20:14:50 -0700
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2020-08-03 12:23:02 +0200
commitb14f60cfcc37a61650e78c4f39143ec61b55a9b4 (patch)
tree49016e471a908bf5548a323cd25a2df7651dd74b /utils/v4l2-ctl/v4l2-ctl-streaming.cpp
parentc7f03287bbd64c168975e7ff3192e6fd3b507686 (diff)
convert to range based loops
Found with modernize-loop-convert Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'utils/v4l2-ctl/v4l2-ctl-streaming.cpp')
-rw-r--r--utils/v4l2-ctl/v4l2-ctl-streaming.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/v4l2-ctl/v4l2-ctl-streaming.cpp b/utils/v4l2-ctl/v4l2-ctl-streaming.cpp
index 71714ec7..d986c7b6 100644
--- a/utils/v4l2-ctl/v4l2-ctl-streaming.cpp
+++ b/utils/v4l2-ctl/v4l2-ctl-streaming.cpp
@@ -879,10 +879,10 @@ static bool set_fwht_req_by_fd(const struct fwht_cframe_hdr *hdr,
set_fwht_stateless_params(fwht_params, hdr, last_bf_ts);
- for (int idx = 0; idx < VIDEO_MAX_FRAME; idx++) {
- if (fwht_reqs[idx].fd == req_fd) {
- fwht_reqs[idx].ts = ts;
- fwht_reqs[idx].params = fwht_params;
+ for (auto &fwht_req : fwht_reqs) {
+ if (fwht_req.fd == req_fd) {
+ fwht_req.ts = ts;
+ fwht_req.params = fwht_params;
return true;
}
}

Privacy Policy