Code smell and performance : capture img and watermarkData by reference
This commit is contained in:
parent
eea5dca893
commit
ed6cd0a927
|
@ -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");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user