From ca1b49d0b181b0f7526f7b8d97ae4c24a85654ed Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 19 Mar 2019 05:41:08 +0100 Subject: tracker/pt: modernize some loops --- tracker-pt/module/point_extractor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tracker-pt/module') diff --git a/tracker-pt/module/point_extractor.cpp b/tracker-pt/module/point_extractor.cpp index 2cb5db97..1a75a3e3 100644 --- a/tracker-pt/module/point_extractor.cpp +++ b/tracker-pt/module/point_extractor.cpp @@ -88,8 +88,8 @@ PointExtractor::PointExtractor(const QString& module_name) : s(module_name) void PointExtractor::ensure_channel_buffers(const cv::Mat& orig_frame) { if (ch[0].rows != orig_frame.rows || ch[0].cols != orig_frame.cols) - for (unsigned k = 0; k < 3; k++) // NOLINT(modernize-loop-convert) - ch[k] = cv::Mat1b(orig_frame.rows, orig_frame.cols); + for (cv::Mat1b& x : ch) + x = cv::Mat1b(orig_frame.rows, orig_frame.cols); } void PointExtractor::ensure_buffers(const cv::Mat& frame) -- cgit v1.2.3