Code smell and performance : capture img and watermarkData by reference

This commit is contained in:
Yann Lossouarn 2024-02-23 18:42:24 +01:00
parent eea5dca893
commit ed6cd0a927

View File

@ -689,7 +689,7 @@ void VPTileFactory::PaintWatermarkImage(QPainter *painter, const QRectF &img, co
SCASSERT(painter != nullptr) SCASSERT(painter != nullptr)
const qreal opacity = watermarkData.opacity / 100.; const qreal opacity = watermarkData.opacity / 100.;
auto BrokenImage = [img, watermarkData, watermarkPath, opacity, folowColorScheme]() auto BrokenImage = [&img, &watermarkData, watermarkPath, opacity, folowColorScheme]()
{ {
QString colorScheme = QStringLiteral("light"); QString colorScheme = QStringLiteral("light");