From 42b5158c9661446984f1f60ed42d44651b6a28ad Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 23 Jul 2018 22:54:32 -0400 Subject: mutex: Pass SharedPtr to GetHighestPriorityMutexWaitingThread() by reference The pointed to thread's members are simply observed in this case, so we don't need to copy it here. --- src/core/hle/kernel/mutex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/hle/kernel/mutex.cpp b/src/core/hle/kernel/mutex.cpp index 3f1de3258..feb7b88d2 100644 --- a/src/core/hle/kernel/mutex.cpp +++ b/src/core/hle/kernel/mutex.cpp @@ -19,7 +19,7 @@ namespace Kernel { /// Returns the number of threads that are waiting for a mutex, and the highest priority one among /// those. static std::pair, u32> GetHighestPriorityMutexWaitingThread( - SharedPtr current_thread, VAddr mutex_addr) { + const SharedPtr& current_thread, VAddr mutex_addr) { SharedPtr highest_priority_thread; u32 num_waiters = 0; -- cgit v1.2.3