From 6b2bece81fbe05456f1a7f8f9d876ade1bcca259 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 17 Apr 2019 06:44:31 -0400 Subject: kernel/wait_object: Make GetHighestPriorityReadyThread() a const member function This doesn't actually modify internal state of a wait object, so it can be const qualified. --- src/core/hle/kernel/wait_object.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/hle/kernel/wait_object.cpp') diff --git a/src/core/hle/kernel/wait_object.cpp b/src/core/hle/kernel/wait_object.cpp index 90580ed93..c8eaf9488 100644 --- a/src/core/hle/kernel/wait_object.cpp +++ b/src/core/hle/kernel/wait_object.cpp @@ -30,7 +30,7 @@ void WaitObject::RemoveWaitingThread(Thread* thread) { waiting_threads.erase(itr); } -SharedPtr WaitObject::GetHighestPriorityReadyThread() { +SharedPtr WaitObject::GetHighestPriorityReadyThread() const { Thread* candidate = nullptr; u32 candidate_priority = THREADPRIO_LOWEST + 1; -- cgit v1.2.3