Merge pull request #7798 from ShFil119/impr/empty

Use empty instead of size
This commit is contained in:
Tilka 2019-02-13 01:59:43 +00:00 committed by GitHub
commit 8d59d1bb11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
28 changed files with 56 additions and 56 deletions

View file

@ -200,7 +200,7 @@ void IOWindow::OnDetectButtonPressed()
{
const auto list = m_option_list->findItems(expr, Qt::MatchFixedString);
if (list.size() > 0)
if (!list.empty())
m_option_list->setCurrentItem(list[0]);
}