diff options
author | Anton Kudryavtsev <anton.kudryavtsev@vk.team> | 2023-10-31 13:26:12 +0300 |
---|---|---|
committer | Anton Kudryavtsev <anton.kudryavtsev@vk.team> | 2023-10-31 21:20:12 +0300 |
commit | 9548118443f401e0b8d2e9b35e7c6ff3d00bf9c9 (patch) | |
tree | 024acbefbba402ad36ff9182ed891555f7c2880b /src/gui/image | |
parent | aa4fe3286d50e05bf7d521ad8d579062f250bd0a (diff) |
qpixmap_win: use qimage rvalue overalods more
Change-Id: I363b40ad8c797e0e554eca249347b5764d7dcfe8
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/gui/image')
-rw-r--r-- | src/gui/image/qpixmap_win.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/image/qpixmap_win.cpp b/src/gui/image/qpixmap_win.cpp index 24af7636ce..d52e624752 100644 --- a/src/gui/image/qpixmap_win.cpp +++ b/src/gui/image/qpixmap_win.cpp @@ -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(); |