internal: refactor to use empty() (#10599)
This commit is contained in:
parent
4078e1d17c
commit
69c2b2926e
20 changed files with 57 additions and 57 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue