mirror of https://github.com/Icinga/icinga2.git
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);
|
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 */
|
||||||
|
|
Loading…
Reference in New Issue