From 7945a576f937fab8bfb25343e39bd26dc3e00057 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Sat, 6 Jul 2019 20:58:31 +0200 Subject: Fix compilation with C++20 Implicit capture of 'this' in [=] is deprecated in C++20. Fix by using explicit captures. Change-Id: I7684c012e74b26b7ec30cfe19f3187f2d76197f3 Reviewed-by: Rebecca Worledge --- src/imports/lottieanimation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/imports/lottieanimation.cpp b/src/imports/lottieanimation.cpp index 6d5fffa..5a489f3 100644 --- a/src/imports/lottieanimation.cpp +++ b/src/imports/lottieanimation.cpp @@ -613,7 +613,7 @@ void LottieAnimation::renderNextFrame() qCDebug(lcLottieQtBodymovinRender) << static_cast(this) << "Frame cache was empty for frame" << m_currentFrame; m_waitForFrameConn = connect(m_frameRenderThread, &BatchRenderer::frameReady, - this, [=](LottieAnimation *target, int frameNumber) { + this, [this](LottieAnimation *target, int frameNumber) { if (target != this) return; qCDebug(lcLottieQtBodymovinRender) << static_cast(this) -- cgit v1.2.3