rocr: Fixed inefficient copy operations

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

Signed-off-by: Alysa Liu <Alysa.Liu@amd.com>
Αυτή η υποβολή περιλαμβάνεται σε:
Alysa Liu authored and Liu, Alysa committed 2025-06-02 11:18:36 -04:00
1 γονέας 293092f32f
υποβολή 369d89ade3
5 files changed
+7 -7

No files matched your search

@@ -118,7 +118,7 @@ void RvdFilter::BuildDeviceUuidList(uint32_t numNodes) {
<< props.UniqueID;
std::string uuidVal(stream.str());
std::transform(uuidVal.begin(), uuidVal.end(), uuidVal.begin(), ::toupper);
devUuidList_.push_back(uuidVal);
devUuidList_.push_back(std::move(uuidVal));
}
}
@@ -239,7 +239,7 @@ void RvdFilter::SetDeviceUuidList() {
<< dbgUuid[idx];
std::string uuidVal(stream.str());
std::transform(uuidVal.begin(), uuidVal.end(), uuidVal.begin(), ::toupper);
devUuidList_[idx] = uuidVal;
devUuidList_[idx] = std::move(uuidVal);
}
}