Use empty() instead of !size()

This commit is contained in:
scrawl 2016-02-22 19:06:12 +01:00
parent 8bd16e4d5a
commit 90a99991d1
16 changed files with 20 additions and 20 deletions

View file

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