From 8d6e076b77f7ab13c578a384e3bc98d39373a658 Mon Sep 17 00:00:00 2001 From: VolcaEM <63682805+VolcaEM@users.noreply.github.com> Date: Thu, 9 Jul 2020 06:48:41 +0200 Subject: [PATCH] ncm: Mark two variables as const (#1078) ncm: Mark two variables as const --- .../include/stratosphere/ncm/ncm_content_storage.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/libstratosphere/include/stratosphere/ncm/ncm_content_storage.hpp b/libraries/libstratosphere/include/stratosphere/ncm/ncm_content_storage.hpp index d90868161..8e004d0ab 100644 --- a/libraries/libstratosphere/include/stratosphere/ncm/ncm_content_storage.hpp +++ b/libraries/libstratosphere/include/stratosphere/ncm/ncm_content_storage.hpp @@ -145,7 +145,7 @@ namespace ams::ncm { Result GetRightsId(ncm::RightsId *out_rights_id, PlaceHolderId placeholder_id) { AMS_ASSERT(this->interface != nullptr); - auto vers = hos::GetVersion(); + const auto vers = hos::GetVersion(); if (vers >= hos::Version_3_0_0) { return this->interface->GetRightsIdFromPlaceHolderId(out_rights_id, placeholder_id); } else { @@ -158,7 +158,7 @@ namespace ams::ncm { Result GetRightsId(ncm::RightsId *out_rights_id, ContentId content_id) { AMS_ASSERT(this->interface != nullptr); - auto vers = hos::GetVersion(); + const auto vers = hos::GetVersion(); if (vers >= hos::Version_3_0_0) { return this->interface->GetRightsIdFromContentId(out_rights_id, content_id); } else {