qpixmap_win: use qimage rvalue overalods more
Change-Id: I363b40ad8c797e0e554eca249347b5764d7dcfe8 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
This commit is contained in:
parent
aa4fe3286d
commit
9548118443
@ -164,7 +164,7 @@ static QImage copyImageData(const BITMAPINFOHEADER &header, const RGBQUAD *color
|
||||
Q_ASSERT(DWORD(image.sizeInBytes()) == header.biSizeImage);
|
||||
memcpy(image.bits(), data, header.biSizeImage);
|
||||
if (format == QImage::Format_RGB888)
|
||||
image = image.rgbSwapped();
|
||||
image = std::move(image).rgbSwapped();
|
||||
break;
|
||||
default:
|
||||
Q_UNREACHABLE();
|
||||
|
Loading…
Reference in New Issue
Block a user