From 906da5395832c10c9090940831c4446e9c96f6e2 Mon Sep 17 00:00:00 2001 From: Yuri Kunde Schlesner Date: Mon, 22 Dec 2014 12:46:52 -0200 Subject: [PATCH] Thread: Replace a for-loop with range-for --- src/core/hle/kernel/thread.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp index 56c5d6ba6..1713f235a 100644 --- a/src/core/hle/kernel/thread.cpp +++ b/src/core/hle/kernel/thread.cpp @@ -272,8 +272,7 @@ void DebugThreadQueue() { return; } LOG_DEBUG(Kernel, "0x%02X 0x%08X (current)", thread->current_priority, GetCurrentThread()->GetHandle()); - for (u32 i = 0; i < thread_queue.size(); i++) { - Handle handle = thread_queue[i]; + for (Handle handle : thread_queue) { s32 priority = thread_ready_queue.contains(handle); if (priority != -1) { LOG_DEBUG(Kernel, "0x%02X 0x%08X", priority, handle);