diff options
| author | s1dd <140317709+nots1dd@users.noreply.github.com> | 2025-05-09 00:31:49 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-08 21:01:49 +0200 |
| commit | f01e3043b81d1ad7d886f0502b445bdf3cea0ccc (patch) | |
| tree | f67ac13301e9c3a08175dba521198e9ff3c7737f /src/desktop/LayerRule.cpp | |
| parent | 04c98abd1fe7f3d63c6060ea175e0a5cd9cd9947 (diff) | |
desktop: cleanup code and use std::ranges (#10289)
Diffstat (limited to 'src/desktop/LayerRule.cpp')
| -rw-r--r-- | src/desktop/LayerRule.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/desktop/LayerRule.cpp b/src/desktop/LayerRule.cpp index 9b5f9da2..dfcd289a 100644 --- a/src/desktop/LayerRule.cpp +++ b/src/desktop/LayerRule.cpp @@ -8,7 +8,7 @@ static const auto RULES = std::unordered_set<std::string>{"noanim", "blur static const auto RULES_PREFIX = std::unordered_set<std::string>{"ignorealpha", "ignorezero", "xray", "animation", "order", "abovelock"}; CLayerRule::CLayerRule(const std::string& rule_, const std::string& ns_) : m_targetNamespace(ns_), m_rule(rule_) { - const bool VALID = RULES.contains(m_rule) || std::any_of(RULES_PREFIX.begin(), RULES_PREFIX.end(), [&rule_](const auto& prefix) { return rule_.starts_with(prefix); }); + const bool VALID = RULES.contains(m_rule) || std::ranges::any_of(RULES_PREFIX, [&rule_](const auto& prefix) { return rule_.starts_with(prefix); }); if (!VALID) return; |
