Skip to content

Commit f9d3501

Browse files
Merge pull request #1536 from IntelPython/fix-copy-instead-of-move-coverity-issue
Addressed COPY_INSTEAD_OF_MOVE coverity issue
2 parents cf68d61 + 5e707f5 commit f9d3501

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dpctl/tensor/libtensor/include/kernels/sorting.hpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,8 @@ void leaf_sort_impl(Iter first,
287287
const size_t end,
288288
Compare comp)
289289
{
290-
return insertion_sort_impl<Iter, Compare>(first, begin, end, comp);
290+
return insertion_sort_impl<Iter, Compare>(
291+
std::move(first), std::move(begin), std::move(end), std::move(comp));
291292
}
292293
} // namespace
293294

0 commit comments

Comments
 (0)