rocr: Fixed inefficient copy operations

Changed variable assignments to use std::move() where appropriate

Signed-off-by: Alysa Liu <Alysa.Liu@amd.com>
This commit is contained in:
Alysa Liu
2025-05-27 13:22:25 -04:00
committed by Liu, Alysa
parent 293092f32f
commit 369d89ade3
5 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -126,7 +126,7 @@ class ScratchCache {
ScratchCache& operator=(const ScratchCache& rhs) = delete;
ScratchCache& operator=(ScratchCache&& rhs) = delete;
ScratchCache(deallocator_t deallocator) : dealloc(deallocator), available_bytes_(0) {}
ScratchCache(deallocator_t deallocator) : dealloc(std::move(deallocator)), available_bytes_(0) {}
~ScratchCache() { assert(map.empty() && "ScratchCache not empty at shutdown."); }