Pass SettingsHandler buffers by const ref instead of rvalue ref

This commit is contained in:
Niel Lebeck committed 2024-04-12 18:50:21 -07:00
1 parent 107379bf74
commit d2b96736e0
6 files changed
+18 -25

No files matched your search

+1 -1
View File
@@ -139,7 +139,7 @@ IPCReply GetRealProductCode(Core::System& system, const IOCtlVRequest& request)
return IPCReply(IPC_ENOENT);
Common::SettingsHandler gen;
gen.SetBytes(std::move(data));
gen.SetBytes(data);
const std::string code = gen.GetValue("CODE");
const size_t length = std::min<size_t>(request.io_vectors[0].size, code.length());