[fixup] Redundant shared_from_this

This commit is contained in:
Yuri Kunde Schlesner 2015-01-04 00:54:42 -02:00
parent ff3eee27da
commit 9d0e4e298a

View file

@ -47,7 +47,7 @@ Manager* g_manager = nullptr; ///< Service manager
void Manager::AddService(std::shared_ptr<Interface> 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);
}