mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
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:
parent
29a95df74d
commit
8c03b39a29
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user