summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-11-26 05:04:21 +0100
committerGitHub <noreply@github.com>2018-11-26 05:04:21 +0100
commitee764c3b4b9ce75dcf2230eb1e678d044d3012eb (patch)
tree2553bff5f85c4c416b0ea8fb0b33fb005631d572
parentMerge pull request #1760 from ReinUsesLisp/r2p (diff)
parentservice/sm: Take std::string by const reference in UnregisterService (diff)
downloadyuzu-ee764c3b4b9ce75dcf2230eb1e678d044d3012eb.tar
yuzu-ee764c3b4b9ce75dcf2230eb1e678d044d3012eb.tar.gz
yuzu-ee764c3b4b9ce75dcf2230eb1e678d044d3012eb.tar.bz2
yuzu-ee764c3b4b9ce75dcf2230eb1e678d044d3012eb.tar.lz
yuzu-ee764c3b4b9ce75dcf2230eb1e678d044d3012eb.tar.xz
yuzu-ee764c3b4b9ce75dcf2230eb1e678d044d3012eb.tar.zst
yuzu-ee764c3b4b9ce75dcf2230eb1e678d044d3012eb.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);