mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 21:05:36 +00:00
b=35749 Fixed Purify warning
This commit is contained in:
parent
5dff88a180
commit
41bb5435ed
@ -2353,7 +2353,7 @@ nsTextFrame::PaintAsciiText(nsIPresContext* aPresContext,
|
||||
|
||||
// See if we should skip leading whitespace
|
||||
if (0 != (mState & TEXT_SKIP_LEADING_WS)) {
|
||||
while (XP_IS_SPACE(*text) && (textLength > 0)) {
|
||||
while ((textLength > 0) && XP_IS_SPACE(*text)) {
|
||||
text++;
|
||||
textLength--;
|
||||
}
|
||||
|
@ -2353,7 +2353,7 @@ nsTextFrame::PaintAsciiText(nsIPresContext* aPresContext,
|
||||
|
||||
// See if we should skip leading whitespace
|
||||
if (0 != (mState & TEXT_SKIP_LEADING_WS)) {
|
||||
while (XP_IS_SPACE(*text) && (textLength > 0)) {
|
||||
while ((textLength > 0) && XP_IS_SPACE(*text)) {
|
||||
text++;
|
||||
textLength--;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user