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>
This commit is contained in:
parent
6b1b2bd7ea
commit
77269a2869
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue