diff options
author | Lioncash <mathew1800@gmail.com> | 2021-04-27 12:05:34 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2021-04-27 12:48:15 -0400 |
commit | 724c19a307f31ce1122fb8047c86d5a126d0860f (patch) | |
tree | 605b89f42d7897aac46f06add54c34201d9354bd /src/core/loader/kip.cpp | |
parent | cd80471c902540ae1086732234d45b6fb5b2e169 (diff) |
loader: Resolve instances of variable shadowing
Eliminates variable shadowing cases across all the loaders to bring us
closer to enabling variable shadowing as an error in core.
Diffstat (limited to 'src/core/loader/kip.cpp')
-rw-r--r-- | src/core/loader/kip.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/loader/kip.cpp b/src/core/loader/kip.cpp index 55e6de7948..9b447da2af 100644 --- a/src/core/loader/kip.cpp +++ b/src/core/loader/kip.cpp @@ -24,9 +24,9 @@ AppLoader_KIP::AppLoader_KIP(FileSys::VirtualFile file_) AppLoader_KIP::~AppLoader_KIP() = default; -FileType AppLoader_KIP::IdentifyType(const FileSys::VirtualFile& file) { +FileType AppLoader_KIP::IdentifyType(const FileSys::VirtualFile& in_file) { u32_le magic{}; - if (file->GetSize() < sizeof(u32) || file->ReadObject(&magic) != sizeof(u32)) { + if (in_file->GetSize() < sizeof(u32) || in_file->ReadObject(&magic) != sizeof(u32)) { return FileType::Error; } @@ -56,10 +56,10 @@ AppLoader::LoadResult AppLoader_KIP::Load(Kernel::Process& process, return {kip->GetStatus(), {}}; } - const auto get_kip_address_space_type = [](const auto& kip) { - return kip.Is64Bit() - ? (kip.Is39BitAddressSpace() ? FileSys::ProgramAddressSpaceType::Is39Bit - : FileSys::ProgramAddressSpaceType::Is36Bit) + const auto get_kip_address_space_type = [](const auto& kip_type) { + return kip_type.Is64Bit() + ? (kip_type.Is39BitAddressSpace() ? FileSys::ProgramAddressSpaceType::Is39Bit + : FileSys::ProgramAddressSpaceType::Is36Bit) : FileSys::ProgramAddressSpaceType::Is32Bit; }; |