use empty() instead of size()

Origin commit data
------------------
Commit: 7d8d995046
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2012-06-18 (Mon, 18 Jun 2012)

Origin message was:
------------------
 use empty() instead of size()
This commit is contained in:
Jacek Jendrzej
2012-06-18 16:57:44 +02:00
parent b344259b06
commit 62163fa4e5
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;