mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-27 21:24:11 -04:00
Replace std::make_tuple with simpler syntax (#77)
* boot2: Simplify g_additional_launch_programs It appears that Stratosphère is targeting C++17. In C++17, std::make_tuple is not required for initialisating a tuple anymore. Same thing, but less typing * Replace std::make_tuple with {} More readable and less noise. Also fixes two missing return statements.
This commit is contained in:
parent
cf50bad36c
commit
a097babe18
11 changed files with 155 additions and 155 deletions
|
@ -24,9 +24,9 @@ Result ManagerService::handle_deferred() {
|
|||
|
||||
|
||||
std::tuple<Result> ManagerService::register_process(u64 pid, InBuffer<u8> acid_sac, InBuffer<u8> aci0_sac) {
|
||||
return std::make_tuple(Registration::RegisterProcess(pid, acid_sac.buffer, acid_sac.num_elements, aci0_sac.buffer, aci0_sac.num_elements));
|
||||
return {Registration::RegisterProcess(pid, acid_sac.buffer, acid_sac.num_elements, aci0_sac.buffer, aci0_sac.num_elements)};
|
||||
}
|
||||
|
||||
std::tuple<Result> ManagerService::unregister_process(u64 pid) {
|
||||
return std::make_tuple(Registration::UnregisterProcess(pid));
|
||||
}
|
||||
return {Registration::UnregisterProcess(pid)};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue