mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-31 14:58:22 -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
|
@ -73,11 +73,11 @@ namespace ams::fssystem {
|
|||
constexpr KeySlotCache() : m_mutex(), m_high_priority_mru_list(), m_low_priority_mru_list() { /* ... */ }
|
||||
|
||||
Result AllocateHighPriority(std::unique_ptr<KeySlotCacheAccessor> *out, const void *key, size_t key_size, s32 key2) {
|
||||
return this->AllocateFromLru(out, m_high_priority_mru_list, key, key_size, key2);
|
||||
R_RETURN(this->AllocateFromLru(out, m_high_priority_mru_list, key, key_size, key2));
|
||||
}
|
||||
|
||||
Result AllocateLowPriority(std::unique_ptr<KeySlotCacheAccessor> *out, const void *key, size_t key_size, s32 key2) {
|
||||
return this->AllocateFromLru(out, m_high_priority_mru_list, key, key_size, key2);
|
||||
R_RETURN(this->AllocateFromLru(out, m_high_priority_mru_list, key, key_size, key2));
|
||||
}
|
||||
|
||||
Result Find(std::unique_ptr<KeySlotCacheAccessor> *out, const void *key, size_t key_size, s32 key2) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue