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
@@ -76,7 +76,7 @@ template <typename T> class lazy_ptr {
void reset(std::function<T*()> Constructor = nullptr) {
obj.reset();
func = Constructor;
func = std::move(Constructor);
}
void reset(T* ptr) {