use empty() instead of size()

This commit is contained in:
satbaby
2012-06-16 10:38:38 +02:00
parent bc574e9688
commit c1a1aae4c1
5 changed files with 9 additions and 9 deletions

View File

@@ -678,7 +678,7 @@ int CChannelList::show()
actzap = updateSelection(new_selected);
}
else if (msg == (neutrino_msg_t)g_settings.key_bouquet_up) {
if (bouquetList->Bouquets.size() > 0) {
if (!bouquetList->Bouquets.empty()) {
bool found = true;
uint32_t nNext = (bouquetList->getActiveBouquetNumber()+1) % bouquetList->Bouquets.size();
if(bouquetList->Bouquets[nNext]->channelList->getSize() <= 0) {