Merge pull request #12990 from tygyh/Use-contains-method

Use 'contains' method
This commit is contained in:
Tilka 2024-08-14 23:54:16 +01:00 committed by GitHub
commit 18ac8bf405
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
31 changed files with 46 additions and 52 deletions

View file

@ -75,7 +75,7 @@ bool IniFile::Section::Get(std::string_view key, std::string* value,
bool IniFile::Section::Exists(std::string_view key) const
{
return values.find(key) != values.end();
return values.contains(key);
}
bool IniFile::Section::Delete(std::string_view key)