зеркало из https://github.com/mozilla/pjs.git
Bug 562582 - suggest parentheses around assignment used as truth value in nsRegion::ToOutsidePixels, r=roc
This commit is contained in:
Родитель
866a2d6e08
Коммит
8cc3d5b0d9
|
@ -1292,7 +1292,7 @@ nsIntRegion nsRegion::ToOutsidePixels(nscoord aAppUnitsPerPixel) const {
|
||||||
nsIntRegion result;
|
nsIntRegion result;
|
||||||
nsRegionRectIterator rgnIter(*this);
|
nsRegionRectIterator rgnIter(*this);
|
||||||
const nsRect *currentRect;
|
const nsRect *currentRect;
|
||||||
while (currentRect = rgnIter.Next()) {
|
while ((currentRect = rgnIter.Next())) {
|
||||||
nsIntRect deviceRect = currentRect->ToOutsidePixels(aAppUnitsPerPixel);
|
nsIntRect deviceRect = currentRect->ToOutsidePixels(aAppUnitsPerPixel);
|
||||||
result.Or(result, deviceRect);
|
result.Or(result, deviceRect);
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче