use empty() instead of size()

This commit is contained in:
satbaby
2012-06-18 16:57:44 +02:00
parent 41f365f308
commit 7d8d995046
8 changed files with 16 additions and 16 deletions

View File

@@ -390,7 +390,7 @@ void CUpnpBrowserGui::selectDevice()
m_devices = m_socket->Discover("urn:schemas-upnp-org:service:ContentDirectory:1");
scanBox->hide();
if (!m_devices.size())
if (m_devices.empty())
{
ShowLocalizedMessage(LOCALE_MESSAGEBOX_INFO, LOCALE_UPNPBROWSER_NOSERVERS, CMessageBox::mbrBack, CMessageBox::mbBack, NEUTRINO_ICON_INFO);
delete scanBox;
@@ -457,7 +457,7 @@ void CUpnpBrowserGui::selectDevice()
#endif
m_devices = m_socket->Discover("urn:schemas-upnp-org:service:ContentDirectory:1");
scanBox->hide();
if (!m_devices.size())
if (m_devices.empty())
{
ShowLocalizedMessage(LOCALE_MESSAGEBOX_INFO, LOCALE_UPNPBROWSER_NOSERVERS, CMessageBox::mbrBack, CMessageBox::mbBack, NEUTRINO_ICON_INFO);
delete scanBox;