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:
@@ -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."); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user