From 177fbc46ec508ec9aba9aa5ff1b0f0f359eb2b24 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Mon, 18 Jun 2012 09:44:12 +0200 Subject: [PATCH] Use empty() rather than size() == 0. --- components/checker/checkercomponent.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/checker/checkercomponent.cpp b/components/checker/checkercomponent.cpp index c6aea671f..5c530c2eb 100644 --- a/components/checker/checkercomponent.cpp +++ b/components/checker/checkercomponent.cpp @@ -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 */