X64Backend: Take a reference of the pair rather than a copy (and formatting)

This commit is contained in:
Dr. Chat 2015-12-06 23:36:21 -06:00 committed by Ben Vanik
parent 49ed0915d4
commit 1442f50058
1 changed files with 2 additions and 2 deletions

View File

@ -143,7 +143,7 @@ bool X64Backend::InstallBreakpoint(Breakpoint* bp) {
auto orig_bytes =
xe::load_and_swap<uint16_t>(reinterpret_cast<void*>(code + 0x0));
bp->backend_data().push_back({code, orig_bytes });
bp->backend_data().push_back({code, orig_bytes});
xe::store_and_swap<uint16_t>(reinterpret_cast<void*>(code + 0x0), 0x0F0C);
}
@ -170,7 +170,7 @@ bool X64Backend::InstallBreakpoint(Breakpoint* bp, Function* func) {
}
bool X64Backend::UninstallBreakpoint(Breakpoint* bp) {
for (auto pair : bp->backend_data()) {
for (auto& pair : bp->backend_data()) {
xe::store_and_swap<uint16_t>(reinterpret_cast<void*>(pair.first),
uint16_t(pair.second));
}