Use empty instead of size

This commit is contained in:
Filip Gawin committed 2019-02-13 00:03:49 +01:00
1 parent 363ce67459
commit 49fe9f5db1
28 files changed
+56 -56

No files matched your search

@@ -265,7 +265,7 @@ void NetPlaySetupDialog::accept()
else
{
auto items = m_host_games->selectedItems();
if (items.size() == 0)
if (items.empty())
{
QMessageBox::critical(this, tr("Error"), tr("You must select a game to host!"));
return;