Skip to content

Commit 82b0380

Browse files
[SYCL] Fix minor coverity hit (#18155)
Signed-off-by: Tikhomirova, Kseniya <kseniya.tikhomirova@intel.com>
1 parent 20e3747 commit 82b0380

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/source/handler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ handler::handler(std::shared_ptr<detail::queue_impl> Queue,
316316
bool CallerNeedsEvent)
317317
: impl(std::make_shared<detail::handler_impl>(Queue.get(),
318318
CallerNeedsEvent)),
319-
MQueue(Queue) {}
319+
MQueue(std::move(Queue)) {}
320320

321321
#ifndef __INTEL_PREVIEW_BREAKING_CHANGES
322322
// TODO: This function is not used anymore, remove it in the next

0 commit comments

Comments
 (0)