Closed Bug 454766 Opened 13 years ago Closed 13 years ago
Add suggested parentheses to layout/
GCC throws a lot of warnings about suggested parentheses. This patch simply adds those parentheses and makes gcc happy :)
- if (!(aFlags & TRANSFORM_CHANGED) && - svg->mLengthAttributes[nsSVGSVGElement::X].IsPercentage() || + if ((!(aFlags & TRANSFORM_CHANGED) && + svg->mLengthAttributes[nsSVGSVGElement::X].IsPercentage()) || This actually looks like buggy code...
Yes, you are right. The comment above the if clarifies it. Fixed that case.
Comment on attachment 338621 [details] [diff] [review] updated patch + if ((aEvent->eventStructType == NS_MOUSE_EVENT && + aEvent->message == NS_MOUSE_BUTTON_UP && static_cast<nsMouseEvent*>(aEvent)->button == nsMouseEvent::eLeftButton) || Fix indent.
Indentation fixed. I also moved the "||" to the next line to make that line fit in 80 chars, hope that is ok. r+ as per comment #3
Comment on attachment 338657 [details] [diff] [review] indentation fixed [Checkin: Comment 4] http://hg.mozilla.org/mozilla-central/rev/81b6a486f82e (In reply to comment #4) > I also moved the "||" to the next line to make that line fit > in 80 chars, hope that is ok. I undid that part.
Attachment #338657 - Attachment description: indentation fixed → indentation fixed [Checkin: Comment 4]
Maybe fill a bug for a test for comment 1 !?
Severity: normal → minor
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
OS: Linux → All
Hardware: PC → All
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.1b1
You need to log in before you can comment on or make changes to this bug.