mirror of https://github.com/PCSX2/pcsx2.git
INISettingsInterface: Fix scope of variable warning.
Codacy.
This commit is contained in:
parent
bd16ed1340
commit
53a8855696
|
@ -305,9 +305,10 @@ std::vector<std::pair<std::string, std::string>> INISettingsInterface::GetKeyVal
|
|||
using KVEntry = std::pair<const char*, Entry>;
|
||||
std::vector<KVEntry> entries;
|
||||
std::vector<std::pair<std::string, std::string>> output;
|
||||
std::list<Entry> keys, values;
|
||||
std::list<Entry> keys;
|
||||
if (m_ini.GetAllKeys(section, keys))
|
||||
{
|
||||
std::list<Entry> values;
|
||||
for (Entry& key : keys)
|
||||
{
|
||||
if (!m_ini.GetAllValues(section, key.pItem, values)) // [[unlikely]]
|
||||
|
|
Loading…
Reference in New Issue