mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-02-07 14:51:26 +01:00
ncm: Mark two variables as const (#1078)
ncm: Mark two variables as const
This commit is contained in:
parent
9bd6916646
commit
8d6e076b77
@ -145,7 +145,7 @@ namespace ams::ncm {
|
|||||||
Result GetRightsId(ncm::RightsId *out_rights_id, PlaceHolderId placeholder_id) {
|
Result GetRightsId(ncm::RightsId *out_rights_id, PlaceHolderId placeholder_id) {
|
||||||
AMS_ASSERT(this->interface != nullptr);
|
AMS_ASSERT(this->interface != nullptr);
|
||||||
|
|
||||||
auto vers = hos::GetVersion();
|
const auto vers = hos::GetVersion();
|
||||||
if (vers >= hos::Version_3_0_0) {
|
if (vers >= hos::Version_3_0_0) {
|
||||||
return this->interface->GetRightsIdFromPlaceHolderId(out_rights_id, placeholder_id);
|
return this->interface->GetRightsIdFromPlaceHolderId(out_rights_id, placeholder_id);
|
||||||
} else {
|
} else {
|
||||||
@ -158,7 +158,7 @@ namespace ams::ncm {
|
|||||||
Result GetRightsId(ncm::RightsId *out_rights_id, ContentId content_id) {
|
Result GetRightsId(ncm::RightsId *out_rights_id, ContentId content_id) {
|
||||||
AMS_ASSERT(this->interface != nullptr);
|
AMS_ASSERT(this->interface != nullptr);
|
||||||
|
|
||||||
auto vers = hos::GetVersion();
|
const auto vers = hos::GetVersion();
|
||||||
if (vers >= hos::Version_3_0_0) {
|
if (vers >= hos::Version_3_0_0) {
|
||||||
return this->interface->GetRightsIdFromContentId(out_rights_id, content_id);
|
return this->interface->GetRightsIdFromContentId(out_rights_id, content_id);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user