summaryrefslogtreecommitdiffstats
path: root/src/OSSupport/Queue.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/OSSupport/Queue.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/OSSupport/Queue.h b/src/OSSupport/Queue.h
index 82f221453..afbde1b0d 100644
--- a/src/OSSupport/Queue.h
+++ b/src/OSSupport/Queue.h
@@ -86,7 +86,7 @@ public:
bool TryDequeueItem(ItemType & item)
{
cCSLock Lock(m_CS);
- if (m_Contents.size() == 0)
+ if (m_Contents.empty())
{
return false;
}
@@ -101,7 +101,7 @@ public:
ItemType DequeueItem(void)
{
cCSLock Lock(m_CS);
- while (m_Contents.size() == 0)
+ while (m_Contents.empty())
{
cCSUnlock Unlock(Lock);
m_evtAdded.Wait();