mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-20 09:55:07 -04:00
ams: globally prefer R_RETURN to return for ams::Result
This commit is contained in:
parent
dd78ede99f
commit
bbf22b4c60
325 changed files with 1955 additions and 1993 deletions
|
@ -66,10 +66,10 @@ namespace ams::erpt::srv {
|
|||
{
|
||||
auto intf = ams::sf::ObjectFactory<ams::sf::ExpHeapAllocator::Policy>::CreateSharedEmplaced<erpt::sf::ISession, erpt::srv::SessionImpl>(std::addressof(g_sf_allocator));
|
||||
AMS_ABORT_UNLESS(intf != nullptr);
|
||||
return this->AcceptImpl(server, intf);
|
||||
R_RETURN(this->AcceptImpl(server, intf));
|
||||
}
|
||||
case PortIndex_Context:
|
||||
return AcceptImpl(server, m_context_session_object.GetShared());
|
||||
R_RETURN(AcceptImpl(server, m_context_session_object.GetShared()));
|
||||
default:
|
||||
R_THROW(erpt::ResultNotSupported());
|
||||
}
|
||||
|
@ -144,7 +144,7 @@ namespace ams::erpt::srv {
|
|||
|
||||
Result InitializeService() {
|
||||
util::ConstructAt(g_erpt_server_manager);
|
||||
return util::GetReference(g_erpt_server_manager).Initialize();
|
||||
R_RETURN(util::GetReference(g_erpt_server_manager).Initialize());
|
||||
}
|
||||
|
||||
void WaitService() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue