diff options
author | Lioncash <mathew1800@gmail.com> | 2014-09-06 19:30:27 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2014-09-06 19:30:27 +0200 |
commit | d30747efea01b61dba44abe50f2b7a9d8f9da3a5 (patch) | |
tree | 6989ba1e8ad0087d6c9874de151bdc5f1f42f96d /src/core/hle/service/service.cpp | |
parent | Merge pull request #88 from archshift/remove-atomic (diff) | |
download | yuzu-d30747efea01b61dba44abe50f2b7a9d8f9da3a5.tar yuzu-d30747efea01b61dba44abe50f2b7a9d8f9da3a5.tar.gz yuzu-d30747efea01b61dba44abe50f2b7a9d8f9da3a5.tar.bz2 yuzu-d30747efea01b61dba44abe50f2b7a9d8f9da3a5.tar.lz yuzu-d30747efea01b61dba44abe50f2b7a9d8f9da3a5.tar.xz yuzu-d30747efea01b61dba44abe50f2b7a9d8f9da3a5.tar.zst yuzu-d30747efea01b61dba44abe50f2b7a9d8f9da3a5.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/service.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cpp index d3af2768a..00ac1c9c6 100644 --- a/src/core/hle/service/service.cpp +++ b/src/core/hle/service/service.cpp @@ -41,7 +41,7 @@ void Manager::AddService(Interface* service) { } /// Removes a service from the manager, also frees memory -void Manager::DeleteService(std::string port_name) { +void Manager::DeleteService(const std::string& port_name) { Interface* service = FetchFromPortName(port_name); m_services.erase(std::remove(m_services.begin(), m_services.end(), service), m_services.end()); m_port_map.erase(port_name); @@ -54,7 +54,7 @@ Interface* Manager::FetchFromHandle(Handle handle) { } /// Get a Service Interface from its port -Interface* Manager::FetchFromPortName(std::string port_name) { +Interface* Manager::FetchFromPortName(const std::string& port_name) { auto itr = m_port_map.find(port_name); if (itr == m_port_map.end()) { return nullptr; |