From 8cf23eba9c4476d1014df19558c4fcafc1c28831 Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Sun, 8 Sep 2024 19:52:29 -0700 Subject: [PATCH] FEXLoader/ELFCodeLoader: Use const ref auto to avoid copy --- Source/Tools/FEXLoader/ELFCodeLoader.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Tools/FEXLoader/ELFCodeLoader.h b/Source/Tools/FEXLoader/ELFCodeLoader.h index 1fe6feb5db..8e24f75b83 100644 --- a/Source/Tools/FEXLoader/ELFCodeLoader.h +++ b/Source/Tools/FEXLoader/ELFCodeLoader.h @@ -358,7 +358,7 @@ class ELFCodeLoader final : public FEX::CodeLoader { }; bool MapMemory(FEX::HLE::SyscallHandler* const Handler) { - for (auto Header : MainElf.phdrs) { + for (const auto& Header : MainElf.phdrs) { if (Header.p_type == PT_GNU_STACK) { if (Header.p_flags & PF_X) { ExecutableStack = true;