From a74740971122cabe8245d7c2f5fdf986b137d8ca Mon Sep 17 00:00:00 2001 From: Isaac Ault Date: Mon, 20 Jan 2025 13:12:58 +1000 Subject: [PATCH] Fix Coverity COPY_INSTEAD_OF_MOVE defects. --- source/loader/layers/sanitizer/asan/asan_buffer.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/loader/layers/sanitizer/asan/asan_buffer.hpp b/source/loader/layers/sanitizer/asan/asan_buffer.hpp index a1bbc9df5c..113454638e 100644 --- a/source/loader/layers/sanitizer/asan/asan_buffer.hpp +++ b/source/loader/layers/sanitizer/asan/asan_buffer.hpp @@ -29,7 +29,8 @@ struct MemBuffer { // Sub-buffer constructor MemBuffer(std::shared_ptr Parent, size_t Origin, size_t Size) - : Context(Parent->Context), Size(Size), SubBuffer{{Parent, Origin}} {} + : Context(Parent->Context), Size(Size), + SubBuffer{{std::move(Parent), Origin}} {} ur_result_t getHandle(ur_device_handle_t Device, char *&Handle);