mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Use empty() rather than size() == 0.
This commit is contained in:
parent
3ebe553401
commit
177fbc46ec
@ -65,7 +65,7 @@ void CheckerComponent::CheckTimerHandler(void)
|
||||
time(&now);
|
||||
|
||||
for (;;) {
|
||||
if (m_Services.size() == 0)
|
||||
if (m_Services.empty())
|
||||
break;
|
||||
|
||||
Service service = m_Services.top();
|
||||
@ -116,7 +116,7 @@ void CheckerComponent::ResultTimerHandler(void)
|
||||
|
||||
void CheckerComponent::AdjustCheckTimer(void)
|
||||
{
|
||||
if (m_Services.size() == 0)
|
||||
if (m_Services.empty())
|
||||
return;
|
||||
|
||||
/* adjust next call time for the check timer */
|
||||
|
Loading…
x
Reference in New Issue
Block a user