summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/mutex.cpp
diff options
context:
space:
mode:
authorbunnei <ericbunnie@gmail.com>2014-06-06 06:23:33 +0200
committerbunnei <ericbunnie@gmail.com>2014-06-13 15:51:12 +0200
commit5365ca157d5cb81c5cba3922036839f3c58e85ba (patch)
tree378f5d44b7bdc70795ff10dc40be90ae2465eb36 /src/core/hle/kernel/mutex.cpp
parentHLE: Updated various handle debug assertions to be more clear. (diff)
downloadyuzu-5365ca157d5cb81c5cba3922036839f3c58e85ba.tar
yuzu-5365ca157d5cb81c5cba3922036839f3c58e85ba.tar.gz
yuzu-5365ca157d5cb81c5cba3922036839f3c58e85ba.tar.bz2
yuzu-5365ca157d5cb81c5cba3922036839f3c58e85ba.tar.lz
yuzu-5365ca157d5cb81c5cba3922036839f3c58e85ba.tar.xz
yuzu-5365ca157d5cb81c5cba3922036839f3c58e85ba.tar.zst
yuzu-5365ca157d5cb81c5cba3922036839f3c58e85ba.zip
Diffstat (limited to 'src/core/hle/kernel/mutex.cpp')
-rw-r--r--src/core/hle/kernel/mutex.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/mutex.cpp b/src/core/hle/kernel/mutex.cpp
index ee7507edf..a76c8de03 100644
--- a/src/core/hle/kernel/mutex.cpp
+++ b/src/core/hle/kernel/mutex.cpp
@@ -137,7 +137,7 @@ Result ReleaseMutex(Handle handle) {
* @param name Optional name of mutex
* @return Pointer to new Mutex object
*/
-Mutex* CreateMutex(Handle& handle, bool initial_locked, const std::string name) {
+Mutex* CreateMutex(Handle& handle, bool initial_locked, const std::string& name) {
Mutex* mutex = new Mutex;
handle = Kernel::g_object_pool.Create(mutex);
@@ -161,7 +161,7 @@ Mutex* CreateMutex(Handle& handle, bool initial_locked, const std::string name)
* @param name Optional name of mutex
* @return Handle to newly created object
*/
-Handle CreateMutex(bool initial_locked, std::string name) {
+Handle CreateMutex(bool initial_locked, const std::string& name) {
Handle handle;
Mutex* mutex = CreateMutex(handle, initial_locked, name);
return handle;