16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 03:29:19 +02:00

reformat: use contains()

This commit is contained in:
jerrrrycho
2026-07-03 22:27:42 +02:00
parent 565aeb0c70
commit a4c126b4ea
7 changed files with 15 additions and 15 deletions

View File

@@ -989,7 +989,7 @@ bool global_settings::ConfigParseHardware(cParser& Parser, const std::string& to
Parser.getTokens(1);
std::string firstToken = Parser.peek();
if (firstToken.find('|') != std::string::npos || firstToken == "none" || uartfeatures_map.count(firstToken))
if (firstToken.find('|') != std::string::npos || firstToken == "none" || uartfeatures_map.contains(firstToken))
{
for (auto const& x : uartfeatures_map)
{
@@ -1003,7 +1003,7 @@ bool global_settings::ConfigParseHardware(cParser& Parser, const std::string& to
{
std::getline(firstTokenStream, key, '|');
if (uartfeatures_map.count(key))
if (uartfeatures_map.contains(key))
{
*uartfeatures_map[key] = true;
}