Bug 1387002 - Replace .size() by .empty() when applicable in xpcom/ r=froydnj

MozReview-Commit-ID: LWzpVGVV7Py

--HG--
extra : rebase_source : 1e3aa342a096afcdd194b1272ac693b225081599
This commit is contained in:
Sylvestre Ledru 2017-08-03 12:08:32 +02:00
parent 29a95df74d
commit 8c03b39a29

View File

@ -225,7 +225,7 @@ TaskQueue::Runner::Run()
{
MonitorAutoLock mon(mQueue->mQueueMonitor);
MOZ_ASSERT(mQueue->mIsRunning);
if (mQueue->mTasks.size() == 0) {
if (mQueue->mTasks.empty()) {
mQueue->mIsRunning = false;
mQueue->MaybeResolveShutdown();
mon.NotifyAll();
@ -255,7 +255,7 @@ TaskQueue::Runner::Run()
{
MonitorAutoLock mon(mQueue->mQueueMonitor);
if (mQueue->mTasks.size() == 0) {
if (mQueue->mTasks.empty()) {
// No more events to run. Exit the task runner.
mQueue->mIsRunning = false;
mQueue->MaybeResolveShutdown();