diff options
author | Mattes D <github@xoft.cz> | 2015-01-17 19:52:26 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-01-17 19:52:26 +0100 |
commit | 50918a5214ed748f4ba4b0f4d36ddf7cb1ed3050 (patch) | |
tree | 7dabeb891ea4d1efc8cbc9c55d5530cf9e9d301a /src/OSSupport | |
parent | CMake: Check libs in submodules before configuring. (diff) | |
parent | Fixed CppCheck: (performance) Prefer prefix ++/-- operators for non-primitive types. (diff) | |
download | cuberite-50918a5214ed748f4ba4b0f4d36ddf7cb1ed3050.tar cuberite-50918a5214ed748f4ba4b0f4d36ddf7cb1ed3050.tar.gz cuberite-50918a5214ed748f4ba4b0f4d36ddf7cb1ed3050.tar.bz2 cuberite-50918a5214ed748f4ba4b0f4d36ddf7cb1ed3050.tar.lz cuberite-50918a5214ed748f4ba4b0f4d36ddf7cb1ed3050.tar.xz cuberite-50918a5214ed748f4ba4b0f4d36ddf7cb1ed3050.tar.zst cuberite-50918a5214ed748f4ba4b0f4d36ddf7cb1ed3050.zip |
Diffstat (limited to 'src/OSSupport')
-rw-r--r-- | src/OSSupport/Queue.h | 4 |
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(); |