Merge pull request #13268 from AdmiralCurtiss/ini-delete-case-sensitive
Common/IniFile: Fix case sensitivity mismatch in IniFile::Section::Delete()
This commit is contained in:
commit
0e5d7d0f2d
|
@ -85,7 +85,8 @@ bool IniFile::Section::Delete(std::string_view key)
|
|||
return false;
|
||||
|
||||
values.erase(it);
|
||||
keys_order.erase(std::ranges::find(keys_order, key));
|
||||
keys_order.erase(std::ranges::find_if(
|
||||
keys_order, [&](std::string_view v) { return CaseInsensitiveEquals(key, v); }));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue