From ce2d6da2a18bb1725039dbfd00ac6c8347db7a9f Mon Sep 17 00:00:00 2001 From: "Dr. Chat" Date: Sun, 6 Dec 2015 15:43:28 -0600 Subject: [PATCH] Processor breakpoints: Change iterators to C++11 syntax where necessary --- src/xenia/cpu/processor.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/xenia/cpu/processor.cc b/src/xenia/cpu/processor.cc index d4c5aa535..cb2cfef6e 100644 --- a/src/xenia/cpu/processor.cc +++ b/src/xenia/cpu/processor.cc @@ -406,9 +406,9 @@ void Processor::LowerIrql(Irql old_value) { void Processor::BreakpointFunctionDefined(Function* function) { std::lock_guard lock(breakpoint_lock_); - for (auto it = breakpoints_.begin(); it != breakpoints_.end(); it++) { - if (function->ContainsAddress((*it)->address())) { - backend_->InstallBreakpoint(*it, function); + for (auto bp : breakpoints_) { + if (function->ContainsAddress(bp->address())) { + backend_->InstallBreakpoint(bp, function); } } } @@ -463,9 +463,9 @@ bool Processor::BreakpointHit(uint32_t address, uint64_t host_pc) { Breakpoint* Processor::FindBreakpoint(uint32_t address) { std::lock_guard lock(breakpoint_lock_); - for (auto it = breakpoints_.begin(); it != breakpoints_.end(); it++) { - if ((*it)->address() == address) { - return *it; + for (auto bp : breakpoints_) { + if (bp->address() == address) { + return bp; } }