mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Use empty() instead of !size()
This commit is contained in:
parent
8bd16e4d5a
commit
90a99991d1
16 changed files with 20 additions and 20 deletions
|
@ -87,7 +87,7 @@ osg::ref_ptr<WorkItem> WorkQueue::removeWorkItem()
|
|||
{
|
||||
mCondition.wait(&mMutex);
|
||||
}
|
||||
if (mQueue.size())
|
||||
if (!mQueue.empty())
|
||||
{
|
||||
osg::ref_ptr<WorkItem> item = mQueue.front();
|
||||
mQueue.pop();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue