From 5dbb34a16de80621d5c66e248ca6ec3d4a81d15d Mon Sep 17 00:00:00 2001 From: Maged Elnaggar Date: Mon, 21 Jul 2025 14:30:08 +0100 Subject: [PATCH] Missing return wsi_alloc_utils.hpp in WSI layer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ensure the move-assignment operator in swapchain_wsialloc_allocator returns *this on all code paths. This avoids undefined behavior and satisfies the function’s return type requirements. Signed-off-by: Maged Elnaggar Change-Id: I99762484d7a02c24a4632a7a84b415a3842d02a3 --- wsi/wsi_alloc_utils.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/wsi/wsi_alloc_utils.hpp b/wsi/wsi_alloc_utils.hpp index 6f2388a..529f577 100644 --- a/wsi/wsi_alloc_utils.hpp +++ b/wsi/wsi_alloc_utils.hpp @@ -75,6 +75,7 @@ public: m_allocator = nullptr; } std::swap(m_allocator, other.m_allocator); + return *this; } ~swapchain_wsialloc_allocator()