diff options
author | Barnabás Pőcze <pobrn@protonmail.com> | 2024-04-30 19:26:21 +0000 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2024-05-03 17:57:45 +0300 |
commit | 77269a28692ce683416e4e47d304bc070a721a3b (patch) | |
tree | 22ca88f722a1bea282d2a3a518fba5abdffce5e1 /src | |
parent | 6b1b2bd7ea7f36e7819109c1019f80b1953b2c96 (diff) |
apps: cam: Fix C++20 deprecation warning
C++20 deprecated implicit capture of `this` via `[=]`.
Fix that by explicitly capturing the necessary variables.
Signed-off-by: Barnabás Pőcze <pobrn@protonmail.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Umang Jain <umang.jain@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/apps/cam/camera_session.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/apps/cam/camera_session.cpp b/src/apps/cam/camera_session.cpp index 8447f932..48fce178 100644 --- a/src/apps/cam/camera_session.cpp +++ b/src/apps/cam/camera_session.cpp @@ -377,7 +377,7 @@ void CameraSession::requestComplete(Request *request) * Defer processing of the completed request to the event loop, to avoid * blocking the camera manager thread. */ - EventLoop::instance()->callLater([=]() { processRequest(request); }); + EventLoop::instance()->callLater([this, request]() { processRequest(request); }); } void CameraSession::processRequest(Request *request) |