mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-30 21:55:31 +00:00
Bug 562582 - suggest parentheses around assignment used as truth value in nsRegion::ToOutsidePixels, r=roc
This commit is contained in:
parent
9a72faf66f
commit
9e59b19399
@ -1292,7 +1292,7 @@ nsIntRegion nsRegion::ToOutsidePixels(nscoord aAppUnitsPerPixel) const {
|
||||
nsIntRegion result;
|
||||
nsRegionRectIterator rgnIter(*this);
|
||||
const nsRect *currentRect;
|
||||
while (currentRect = rgnIter.Next()) {
|
||||
while ((currentRect = rgnIter.Next())) {
|
||||
nsIntRect deviceRect = currentRect->ToOutsidePixels(aAppUnitsPerPixel);
|
||||
result.Or(result, deviceRect);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user