mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-16 04:23:49 -07:00
internal: refactor to use empty() (#10599)
This commit is contained in:
@@ -1624,13 +1624,13 @@ PHLWINDOW CWindow::getSwallower() {
|
||||
if (!(*PSWALLOWREGEX).empty())
|
||||
std::erase_if(candidates, [&](const auto& other) { return !RE2::FullMatch(other->m_class, *PSWALLOWREGEX); });
|
||||
|
||||
if (candidates.size() == 0)
|
||||
if (candidates.empty())
|
||||
return nullptr;
|
||||
|
||||
if (!(*PSWALLOWEXREGEX).empty())
|
||||
std::erase_if(candidates, [&](const auto& other) { return RE2::FullMatch(other->m_title, *PSWALLOWEXREGEX); });
|
||||
|
||||
if (candidates.size() == 0)
|
||||
if (candidates.empty())
|
||||
return nullptr;
|
||||
|
||||
if (candidates.size() == 1)
|
||||
|
Reference in New Issue
Block a user