mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
use empty() instead of size()
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user