1
0

Fixed CppCheck: (performance) Possible inefficient checking for emptiness.

This commit is contained in:
Kirill Kirilenko
2015-01-17 15:12:14 +03:00
parent 2ce2741968
commit 3dc994f9dc
4 changed files with 5 additions and 5 deletions

View File

@@ -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();