diff options
author | Lioncash <mathew1800@gmail.com> | 2018-11-24 06:04:07 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-11-24 06:08:13 +0100 |
commit | b0df09335cce3f4a2c49bf27d23de85a3c0113dc (patch) | |
tree | 9037a23f6d64e59d1fece95ffedf58349eba5ef1 | |
parent | Merge pull request #1641 from DarkLordZach/sm-register-unregister (diff) | |
download | yuzu-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.cpp | 2 | ||||
-rw-r--r-- | src/core/hle/service/sm/sm.h | 2 |
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); |