ams: replace most remaining operator & with std::addressof

This commit is contained in:
Michael Scire 2021-10-09 14:49:53 -07:00
parent ce8aacef21
commit 1ab0bd1765
109 changed files with 587 additions and 586 deletions

View file

@ -127,7 +127,7 @@ namespace ams::sm::impl {
public:
InitialProcessIdLimits() {
/* Retrieve process limits. */
cfg::GetInitialProcessRange(&this->min, &this->max);
cfg::GetInitialProcessRange(std::addressof(this->min), std::addressof(this->max));
/* Ensure range is sane. */
AMS_ABORT_UNLESS(this->min <= this->max);
@ -538,7 +538,7 @@ namespace ams::sm::impl {
/* Check that we have the service. */
bool has_service = false;
R_TRY(impl::HasService(&has_service, service));
R_TRY(impl::HasService(std::addressof(has_service), service));
/* If we do, we can succeed immediately. */
R_SUCCEED_IF(has_service);