From 0f4a6e39c9fc33fde4b3422a7023ac8ea192d1ba Mon Sep 17 00:00:00 2001 From: Valentin Vanelslande Date: Wed, 7 Nov 2018 13:38:52 -0500 Subject: [PATCH] ldr_ro: change std::tie to structured binding --- src/core/hle/service/ldr_ro/ldr_ro.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/core/hle/service/ldr_ro/ldr_ro.cpp b/src/core/hle/service/ldr_ro/ldr_ro.cpp index ceae8be206..2313bb188b 100644 --- a/src/core/hle/service/ldr_ro/ldr_ro.cpp +++ b/src/core/hle/service/ldr_ro/ldr_ro.cpp @@ -353,9 +353,7 @@ void RO::LoadCRO(Kernel::HLERequestContext& ctx, bool link_on_load_bug_fix) { slot->memory_synchronizer.ResizeMemoryBlock(cro_address, cro_buffer_ptr, fix_size); } - VAddr exe_begin; - u32 exe_size; - std::tie(exe_begin, exe_size) = cro.GetExecutablePages(); + auto [exe_begin, exe_size] = cro.GetExecutablePages(); if (exe_begin) { result = process->vm_manager.ReprotectRange(exe_begin, exe_size, Kernel::VMAPermission::ReadExecute);