From bfdc6d938a98a87c98b1efb6866af74c9b0ac3b1 Mon Sep 17 00:00:00 2001 From: Marco Mattiolo Date: Mon, 12 Aug 2024 14:23:54 +0200 Subject: [PATCH] Avoid implicit capture of 'this' via '[=]' as deprecated in C++20 --- quicksettings/screenshot/screenshotutil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quicksettings/screenshot/screenshotutil.cpp b/quicksettings/screenshot/screenshotutil.cpp index e9bd6ba1..f93dd2ec 100644 --- a/quicksettings/screenshot/screenshotutil.cpp +++ b/quicksettings/screenshot/screenshotutil.cpp @@ -78,7 +78,7 @@ ScreenShotUtil::ScreenShotUtil(QObject *parent) void ScreenShotUtil::takeScreenShot() { // wait ~200 ms to wait for rest of animations - QTimer::singleShot(SCREENSHOT_DELAY, [=]() { + QTimer::singleShot(SCREENSHOT_DELAY, [this]() { int lPipeFds[2]; if (pipe2(lPipeFds, O_CLOEXEC) != 0) { qWarning() << "Could not take screenshot";