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

@@ -247,7 +247,7 @@ int CTimerdClient::addTimerEvent( CTimerd::CTimerEventTypes evType, void* data,
//printf("[CTimerdClient] checking for overlapping timers\n");
CTimerd::TimerList overlappingTimer;
overlappingTimer = getOverlappingTimers(alarmtime, stoptime);
if (overlappingTimer.size() > 0)
if (!overlappingTimer.empty())
{
// timerd starts eventID at 0 so we can return -1
return -1;