summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-11-24 06:04:07 +0100
committerLioncash <mathew1800@gmail.com>2018-11-24 06:08:13 +0100
commitb0df09335cce3f4a2c49bf27d23de85a3c0113dc (patch)
tree9037a23f6d64e59d1fece95ffedf58349eba5ef1
parentMerge pull request #1641 from DarkLordZach/sm-register-unregister (diff)
downloadyuzu-b0df09335cce3f4a2c49bf27d23de85a3c0113dc.tar
yuzu-b0df09335cce3f4a2c49bf27d23de85a3c0113dc.tar.gz
yuzu-b0df09335cce3f4a2c49bf27d23de85a3c0113dc.tar.bz2
yuzu-b0df09335cce3f4a2c49bf27d23de85a3c0113dc.tar.lz
yuzu-b0df09335cce3f4a2c49bf27d23de85a3c0113dc.tar.xz
yuzu-b0df09335cce3f4a2c49bf27d23de85a3c0113dc.tar.zst
yuzu-b0df09335cce3f4a2c49bf27d23de85a3c0113dc.zip
-rw-r--r--src/core/hle/service/sm/sm.cpp2
-rw-r--r--src/core/hle/service/sm/sm.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/sm/sm.cpp b/src/core/hle/service/sm/sm.cpp
index c1b2f33b9..9ca8483a5 100644
--- a/src/core/hle/service/sm/sm.cpp
+++ b/src/core/hle/service/sm/sm.cpp
@@ -63,7 +63,7 @@ ResultVal<Kernel::SharedPtr<Kernel::ServerPort>> ServiceManager::RegisterService
return MakeResult<Kernel::SharedPtr<Kernel::ServerPort>>(std::move(server_port));
}
-ResultCode ServiceManager::UnregisterService(std::string name) {
+ResultCode ServiceManager::UnregisterService(const std::string& name) {
CASCADE_CODE(ValidateServiceName(name));
const auto iter = registered_services.find(name);
diff --git a/src/core/hle/service/sm/sm.h b/src/core/hle/service/sm/sm.h
index c4714b3e3..bef25433e 100644
--- a/src/core/hle/service/sm/sm.h
+++ b/src/core/hle/service/sm/sm.h
@@ -50,7 +50,7 @@ public:
ResultVal<Kernel::SharedPtr<Kernel::ServerPort>> RegisterService(std::string name,
unsigned int max_sessions);
- ResultCode UnregisterService(std::string name);
+ ResultCode UnregisterService(const std::string& name);
ResultVal<Kernel::SharedPtr<Kernel::ClientPort>> GetServicePort(const std::string& name);
ResultVal<Kernel::SharedPtr<Kernel::ClientSession>> ConnectToService(const std::string& name);