qvulkanwindow: use qimage rvalue overalods more

Pick-to: 6.6
Change-Id: I71bb0df5dbf1993284ec907f637a8696898dddb1
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
This commit is contained in:
Anton Kudryavtsev 2023-10-31 13:23:26 +03:00
parent 9548118443
commit 5e158ee177

View File

@ -2749,7 +2749,7 @@ QImage QVulkanWindow::grab()
d->beginFrame();
if (d->colorFormat == VK_FORMAT_B8G8R8A8_UNORM)
d->frameGrabTargetImage = d->frameGrabTargetImage.rgbSwapped();
d->frameGrabTargetImage = std::move(d->frameGrabTargetImage).rgbSwapped();
return d->frameGrabTargetImage;
}