mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-20 19:08:15 -05:00
service/sm: Take std::string by const reference in UnregisterService
Avoids the need to create a copy of the std::string instance (potentially allocating). The only reason RegisterService takes its argument by value is because it's std::moved internally.
This commit is contained in:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user