diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2019-07-06 20:58:31 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2019-07-07 18:33:28 +0200 |
commit | 7945a576f937fab8bfb25343e39bd26dc3e00057 (patch) | |
tree | 9b6e5b9b6f6ac624ddca6ae6c1443794c7efbd62 | |
parent | 6d8f11a0ec0cc49fed98524259ee37fbe13e9525 (diff) |
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 <rebecca.worledge@theqtcompany.com>
-rw-r--r-- | src/imports/lottieanimation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<void*>(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<void*>(this) |