From 91a81c1e9c0a2b659fb7f93373f92a16fea7f9c9 Mon Sep 17 00:00:00 2001 From: Vladyslav Baranovskyi Date: Tue, 16 Jul 2024 21:40:24 +0300 Subject: [PATCH] Moving result struct instead of copying --- openVulkanoCpp/Image/ImageLoaderJpeg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openVulkanoCpp/Image/ImageLoaderJpeg.cpp b/openVulkanoCpp/Image/ImageLoaderJpeg.cpp index 703fb24..f9daec4 100644 --- a/openVulkanoCpp/Image/ImageLoaderJpeg.cpp +++ b/openVulkanoCpp/Image/ImageLoaderJpeg.cpp @@ -67,6 +67,6 @@ namespace OpenVulkano::Image result.resolution.y = rows; result.resolution.z = 1; - return std::make_unique(result); + return std::make_unique(std::move(result)); } } \ No newline at end of file