mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-15 13:37:57 -05:00
hle/service, hle/sm: Use structured bindings where applicable
Gets rid of the need to keep the variables separate from their actual initialization spots.
This commit is contained in:
@ -54,9 +54,7 @@ ResultVal<Kernel::SharedPtr<Kernel::ServerPort>> ServiceManager::RegisterService
|
||||
return ERR_ALREADY_REGISTERED;
|
||||
|
||||
auto& kernel = Core::System::GetInstance().Kernel();
|
||||
Kernel::SharedPtr<Kernel::ServerPort> server_port;
|
||||
Kernel::SharedPtr<Kernel::ClientPort> client_port;
|
||||
std::tie(server_port, client_port) =
|
||||
auto [server_port, client_port] =
|
||||
Kernel::ServerPort::CreatePortPair(kernel, max_sessions, name);
|
||||
|
||||
registered_services.emplace(std::move(name), std::move(client_port));
|
||||
|
Reference in New Issue
Block a user