qpixmap_win: use qimage rvalue overalods more

Change-Id: I363b40ad8c797e0e554eca249347b5764d7dcfe8
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
This commit is contained in:
Anton Kudryavtsev 2023-10-31 13:26:12 +03:00
parent aa4fe3286d
commit 9548118443

View File

@ -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();