From 8272beb8d2c68416d08cf9a8be31371f66958081 Mon Sep 17 00:00:00 2001 From: sephiroth99 Date: Tue, 22 Sep 2015 03:02:45 -0400 Subject: [PATCH] Fix assignment of temporary value to non-const reference. --- src/xenia/debug/debugger.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xenia/debug/debugger.cc b/src/xenia/debug/debugger.cc index 8a773150a1..6cb8e280ec 100644 --- a/src/xenia/debug/debugger.cc +++ b/src/xenia/debug/debugger.cc @@ -183,7 +183,7 @@ std::vector Debugger::QueryThreadExecutionInfos() { ThreadExecutionInfo* Debugger::QueryThreadExecutionInfo( uint32_t thread_handle) { auto global_lock = global_critical_region_.Acquire(); - auto& it = thread_execution_infos_.find(thread_handle); + const auto& it = thread_execution_infos_.find(thread_handle); if (it == thread_execution_infos_.end()) { return nullptr; }