internal: refactor to use empty() (#10599)
This commit is contained in:
parent
4078e1d17c
commit
69c2b2926e
20 changed files with 57 additions and 57 deletions
|
|
@ -493,7 +493,7 @@ void CSeatManager::refocusGrab() {
|
|||
if (!m_seatGrab)
|
||||
return;
|
||||
|
||||
if (m_seatGrab->m_surfs.size() > 0) {
|
||||
if (!m_seatGrab->m_surfs.empty()) {
|
||||
// try to find a surf in focus first
|
||||
const auto MOUSE = g_pInputManager->getMouseCoordsInternal();
|
||||
for (auto const& s : m_seatGrab->m_surfs) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue