Pass SettingsHandler buffers by const ref instead of rvalue ref
This commit is contained in:
1 parent
107379bf74
commit
d2b96736e0
6 files changed
+18
-25
No files matched your search
@@ -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());
|
||||
|
||||
Reference in new issue
Block a user