mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Merge pull request #13012 from mitaclaw/Use-contains-method-2
Use contains method 2
This commit is contained in:
@ -143,7 +143,7 @@ void GameConfigEdit::OnSelectionChanged()
|
||||
{
|
||||
const QString& keyword = m_edit->textCursor().selectedText();
|
||||
|
||||
if (m_keyword_map.count(keyword))
|
||||
if (m_keyword_map.contains(keyword))
|
||||
QWhatsThis::showText(QCursor::pos(), m_keyword_map[keyword], this);
|
||||
}
|
||||
|
||||
|
@ -140,7 +140,7 @@ void GraphicsModListWidget::RefreshModList()
|
||||
// If no group matches the mod's features, or if the mod has no features, skip it
|
||||
if (std::none_of(mod.m_features.begin(), mod.m_features.end(),
|
||||
[&groups](const GraphicsModFeatureConfig& feature) {
|
||||
return groups.count(feature.m_group) == 1;
|
||||
return groups.contains(feature.m_group);
|
||||
}))
|
||||
{
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user