Bug 1144366 followup - Stop declaring multiple pointers on a single line. r=jorendorff
This commit is contained in:
@@ -110,8 +110,8 @@ void
|
||||
WeakMapBase::sweepCompartment(JSCompartment* c)
|
||||
{
|
||||
WeakMapBase** tailPtr = &c->gcWeakMapList;
|
||||
for (WeakMapBase* m = c->gcWeakMapList, *next; m; m = next) {
|
||||
next = m->next;
|
||||
for (WeakMapBase* m = c->gcWeakMapList; m; ) {
|
||||
WeakMapBase* next = m->next;
|
||||
if (m->marked) {
|
||||
m->sweep();
|
||||
*tailPtr = m;
|
||||
@@ -121,6 +121,7 @@ WeakMapBase::sweepCompartment(JSCompartment* c)
|
||||
m->finish();
|
||||
m->next = WeakMapNotInList;
|
||||
}
|
||||
m = next;
|
||||
}
|
||||
*tailPtr = nullptr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user