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

@ -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));
}