From bf5e09d5abb2946dfcf85b1743cd2c89d75b3228 Mon Sep 17 00:00:00 2001 From: Vincent Rabaud Date: Wed, 5 Jan 2022 13:42:55 +0100 Subject: [PATCH] Remove unnecessary use of ref-capture in code example. --- modules/core/include/opencv2/core/mat.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/include/opencv2/core/mat.hpp b/modules/core/include/opencv2/core/mat.hpp index 5b5218a573..919fa0b6f9 100644 --- a/modules/core/include/opencv2/core/mat.hpp +++ b/modules/core/include/opencv2/core/mat.hpp @@ -2100,7 +2100,7 @@ public: Mat_ image = Mat::zeros(3, sizes, CV_8UC3); - image.forEach([&](Pixel& pixel, const int position[]) -> void { + image.forEach([](Pixel& pixel, const int position[]) -> void { pixel.x = position[0]; pixel.y = position[1]; pixel.z = position[2]; -- GitLab