summaryrefslogtreecommitdiffstats
path: root/src/LightingThread.cpp
diff options
context:
space:
mode:
authorKirill Kirilenko <kirill@ultracoder.org>2015-01-17 13:12:14 +0100
committerKirill Kirilenko <kirill@ultracoder.org>2015-01-17 13:20:03 +0100
commit3dc994f9dca109c0d039d6ba39480eaf67d7cc57 (patch)
tree4b6d2566a2cec6804a34809313dc35c2ee83629d /src/LightingThread.cpp
parentFixed CppCheck: (performance) Function parameter should be passed by reference. (diff)
downloadcuberite-3dc994f9dca109c0d039d6ba39480eaf67d7cc57.tar
cuberite-3dc994f9dca109c0d039d6ba39480eaf67d7cc57.tar.gz
cuberite-3dc994f9dca109c0d039d6ba39480eaf67d7cc57.tar.bz2
cuberite-3dc994f9dca109c0d039d6ba39480eaf67d7cc57.tar.lz
cuberite-3dc994f9dca109c0d039d6ba39480eaf67d7cc57.tar.xz
cuberite-3dc994f9dca109c0d039d6ba39480eaf67d7cc57.tar.zst
cuberite-3dc994f9dca109c0d039d6ba39480eaf67d7cc57.zip
Diffstat (limited to '')
-rw-r--r--src/LightingThread.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/LightingThread.cpp b/src/LightingThread.cpp
index ced95d4e1..effde03d0 100644
--- a/src/LightingThread.cpp
+++ b/src/LightingThread.cpp
@@ -197,7 +197,7 @@ void cLightingThread::Execute(void)
{
{
cCSLock Lock(m_CS);
- if (m_Queue.size() == 0)
+ if (m_Queue.empty())
{
cCSUnlock Unlock(Lock);
m_evtItemAdded.Wait();