mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-09 00:11:44 +00:00
Bug 552798: fix 'suggest parentheses around comparison in operand of &' in TestAtoms.cpp. r=sicking
This commit is contained in:
parent
8205353382
commit
010ceb4326
@ -186,12 +186,12 @@ isStaticAtom(nsIAtom* atom)
|
||||
// Don't use logic && in order to ensure that all addrefs/releases are always
|
||||
// run, even if one of the tests fail. This allows us to run this code on a
|
||||
// non-static atom without affecting its refcount.
|
||||
return atom->AddRef() == 2 &
|
||||
atom->AddRef() == 2 &
|
||||
atom->AddRef() == 2 &
|
||||
atom->Release() == 1 &
|
||||
atom->Release() == 1 &
|
||||
atom->Release() == 1;
|
||||
return (atom->AddRef() == 2) &
|
||||
(atom->AddRef() == 2) &
|
||||
(atom->AddRef() == 2) &
|
||||
(atom->Release() == 1) &
|
||||
(atom->Release() == 1) &
|
||||
(atom->Release() == 1);
|
||||
}
|
||||
|
||||
PRBool
|
||||
|
Loading…
x
Reference in New Issue
Block a user