Commit 0d348f07 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: use isEmpty() iso empty()

parent c745ebb5
......@@ -106,7 +106,7 @@ const QDateTime& EPGView::baseTime()
bool EPGView::hasValidData()
{
return !epgitemsByChannel.empty();
return !epgitemsByChannel.isEmpty();
}
static void cleanOverlapped( EPGEventByTimeQMap *epgItemByTime, EPGItem *epgItem, QGraphicsScene *scene )
......@@ -207,7 +207,7 @@ void EPGView::removeEPGEvent( vlc_epg_event_t *data, QString channelName )
delete epgItem;
}
if ( epgItemByTime->keys().empty() )
if ( epgItemByTime->keys().isEmpty() )
{ /* Now unused channel */
epgitemsByChannel.remove( channelName );
delete epgItemByTime;
......@@ -275,7 +275,7 @@ void EPGView::cleanup()
}
}
if ( epgItemByTime->keys().empty() )
if ( epgItemByTime->keys().isEmpty() )
{ /* Now unused channel */
epgitemsByChannel.remove( channelName );
delete epgItemByTime;
......
......@@ -344,7 +344,7 @@ void AnimatedIcon::play( int loops, int interval )
interval = 20;
}
if( !mIdleFrame && (mFrames.empty() || loops != 0 ) )
if( !mIdleFrame && (mFrames.isEmpty() || loops != 0 ) )
{
#ifndef NDEBUG
printf( "AnimatedIcon::play(): no frames to display" );
......@@ -373,7 +373,7 @@ void AnimatedIcon::play( int loops, int interval )
// private slot
void AnimatedIcon::onTimerTick()
{
//assert( !mFrames.empty() );
//assert( !mFrames.isEmpty() );
if( ++mCurrentFrame > mFrames.count() )
{
if( mRemainingLoops != -1 )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment