From ed6cd0a927c9abbff0a94abfa9f97a928757bc97 Mon Sep 17 00:00:00 2001 From: Yann Lossouarn Date: Fri, 23 Feb 2024 18:42:24 +0100 Subject: [PATCH] Code smell and performance : capture img and watermarkData by reference --- src/app/puzzle/vptilefactory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/puzzle/vptilefactory.cpp b/src/app/puzzle/vptilefactory.cpp index 9af3322dc..3919f85e9 100644 --- a/src/app/puzzle/vptilefactory.cpp +++ b/src/app/puzzle/vptilefactory.cpp @@ -689,7 +689,7 @@ void VPTileFactory::PaintWatermarkImage(QPainter *painter, const QRectF &img, co SCASSERT(painter != nullptr) const qreal opacity = watermarkData.opacity / 100.; - auto BrokenImage = [img, watermarkData, watermarkPath, opacity, folowColorScheme]() + auto BrokenImage = [&img, &watermarkData, watermarkPath, opacity, folowColorScheme]() { QString colorScheme = QStringLiteral("light");