Use empty() rather than size() == 0.

This commit is contained in:
Gunnar Beutner 2012-06-18 09:44:12 +02:00
parent 3ebe553401
commit 177fbc46ec
1 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ void CheckerComponent::CheckTimerHandler(void)
time(&now); time(&now);
for (;;) { for (;;) {
if (m_Services.size() == 0) if (m_Services.empty())
break; break;
Service service = m_Services.top(); Service service = m_Services.top();
@ -116,7 +116,7 @@ void CheckerComponent::ResultTimerHandler(void)
void CheckerComponent::AdjustCheckTimer(void) void CheckerComponent::AdjustCheckTimer(void)
{ {
if (m_Services.size() == 0) if (m_Services.empty())
return; return;
/* adjust next call time for the check timer */ /* adjust next call time for the check timer */