QGradientCache: add some std::move()
Change-Id: I8cbc1dd3cdd46e9741a301bf26b6fab396e374b6 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
This commit is contained in:
parent
c2cecf08d5
commit
b9e510ff8f
@ -4472,9 +4472,9 @@ void QSpanData::setup(const QBrush &brush, int alpha, QPainter::CompositionMode
|
||||
gradient.alphaColor = !brush.isOpaque() || alpha != 256;
|
||||
|
||||
auto cacheInfo = qt_gradient_cache()->getBuffer(*g, alpha);
|
||||
cachedGradient = cacheInfo;
|
||||
gradient.colorTable32 = cacheInfo->buffer32;
|
||||
gradient.colorTable64 = cacheInfo->buffer64;
|
||||
cachedGradient = std::move(cacheInfo);
|
||||
|
||||
gradient.spread = g->spread();
|
||||
|
||||
@ -4494,9 +4494,9 @@ void QSpanData::setup(const QBrush &brush, int alpha, QPainter::CompositionMode
|
||||
gradient.alphaColor = !brush.isOpaque() || alpha != 256;
|
||||
|
||||
auto cacheInfo = qt_gradient_cache()->getBuffer(*g, alpha);
|
||||
cachedGradient = cacheInfo;
|
||||
gradient.colorTable32 = cacheInfo->buffer32;
|
||||
gradient.colorTable64 = cacheInfo->buffer64;
|
||||
cachedGradient = std::move(cacheInfo);
|
||||
|
||||
gradient.spread = g->spread();
|
||||
|
||||
@ -4520,9 +4520,9 @@ void QSpanData::setup(const QBrush &brush, int alpha, QPainter::CompositionMode
|
||||
gradient.alphaColor = !brush.isOpaque() || alpha != 256;
|
||||
|
||||
auto cacheInfo = qt_gradient_cache()->getBuffer(*g, alpha);
|
||||
cachedGradient = cacheInfo;
|
||||
gradient.colorTable32 = cacheInfo->buffer32;
|
||||
gradient.colorTable64 = cacheInfo->buffer64;
|
||||
cachedGradient = std::move(cacheInfo);
|
||||
|
||||
gradient.spread = QGradient::RepeatSpread;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user