mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-13 08:44:36 +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);
|
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…
x
Reference in New Issue
Block a user