Bug 562582 - suggest parentheses around assignment used as truth value in nsRegion::ToOutsidePixels, r=roc

This commit is contained in:
timeless@mozdev.org 2010-04-28 23:20:00 -07:00
parent 9a72faf66f
commit 9e59b19399

View File

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