Bug 1144366 followup - Stop declaring multiple pointers on a single line. r=jorendorff

This commit is contained in:
Jan de Mooij
2015-04-02 11:22:21 +02:00
parent ab88ebd3af
commit 75afa21431
55 changed files with 261 additions and 161 deletions

View File

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