From 9d0e4e298a4f3dfd501ee80865731f07dc64543a Mon Sep 17 00:00:00 2001 From: Yuri Kunde Schlesner Date: Sun, 4 Jan 2015 00:54:42 -0200 Subject: [PATCH] [fixup] Redundant shared_from_this --- src/core/hle/service/service.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cpp index 39802ce6a..054a7b964 100644 --- a/src/core/hle/service/service.cpp +++ b/src/core/hle/service/service.cpp @@ -47,7 +47,7 @@ Manager* g_manager = nullptr; ///< Service manager void Manager::AddService(std::shared_ptr service) { // TOOD(yuriks): Fix error reporting - m_port_map[service->GetPortName()] = Kernel::g_handle_table.Create(service->shared_from_this()).ValueOr(INVALID_HANDLE); + m_port_map[service->GetPortName()] = Kernel::g_handle_table.Create(service).ValueOr(INVALID_HANDLE); m_services.push_back(service); }