From 53a88556963fa49c6b79378b4ed8f34d3761366f Mon Sep 17 00:00:00 2001 From: lightningterror <18107717+lightningterror@users.noreply.github.com> Date: Sun, 2 Apr 2023 21:49:29 +0200 Subject: [PATCH] INISettingsInterface: Fix scope of variable warning. Codacy. --- pcsx2/INISettingsInterface.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pcsx2/INISettingsInterface.cpp b/pcsx2/INISettingsInterface.cpp index f65429aa28..cafd5eb91f 100644 --- a/pcsx2/INISettingsInterface.cpp +++ b/pcsx2/INISettingsInterface.cpp @@ -305,9 +305,10 @@ std::vector> INISettingsInterface::GetKeyVal using KVEntry = std::pair; std::vector entries; std::vector> output; - std::list keys, values; + std::list keys; if (m_ini.GetAllKeys(section, keys)) { + std::list values; for (Entry& key : keys) { if (!m_ini.GetAllValues(section, key.pItem, values)) // [[unlikely]]