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:
Léo Lam 2018-05-05 20:41:39 +02:00 committed by SciresM
parent cf50bad36c
commit a097babe18
11 changed files with 155 additions and 155 deletions

View file

@ -24,10 +24,10 @@ Result BootModeService::handle_deferred() {
}
std::tuple<Result, bool> BootModeService::get_boot_mode() {
return std::make_tuple(0, g_is_maintenance_boot);
return {0, g_is_maintenance_boot};
}
std::tuple<Result> BootModeService::set_maintenance_boot() {
g_is_maintenance_boot = true;
return std::make_tuple(0);
}
return {0};
}