Closed Bug 328876 Opened 19 years ago Closed 19 years ago

Avoid compiler warning in nsFrame::GetSelectionClosestFrame()

Categories

(Core :: Layout, defect)

defect
Not set
trivial

Tracking

()

RESOLVED FIXED
mozilla1.9alpha1

People

(Reporter: uriber, Assigned: uriber)

References

()

Details

Attachments

(1 file, 1 obsolete file)

The assignement in the while loop in nsFrame::GetSelectionClosestFrame() generates the warning: mozilla/layout/generic/nsFrame.cpp:2566: warning: suggest parentheses around assignment used as truth value I missed this when reviewing bug 316281.
Attached patch patch (obsolete) — Splinter Review
Attachment #213488 - Flags: superreview?(roc)
Attachment #213488 - Flags: review?(sharparrow1)
Seems a bit silly to add an extra set of parentheses, but fine; if you want to separate out the assignment from the test, that would be fine too. It doesn't particularly matter to me. I don't think I'm allowed to grant r+ on this,but I would if I could; roc?
Comment on attachment 213488 [details] [diff] [review] patch The style here is pretty bad. Use a for loop instead for (; kid; kid = kid->GetNextSibling())
Attachment #213488 - Flags: superreview?(roc)
Attachment #213488 - Flags: superreview-
Attachment #213488 - Flags: review?(sharparrow1)
Attachment #213488 - Flags: review-
r+ permission is rather fluid ... anything's fine until someone notices and objects :-). Basically if someone is the master of some area then no-one's going to object. So no-one would object if Uri r+'ed a bidi bug, or if Bernd r+'ed a table patch. Eli, you seem to be a jack of all trades, so I'm not sure what you're master of :-). I certainly wouldn't have minded if you had r+'ed. If you ask for sr from someone else, then they get a chance to decide on the appropriateness of the reviewer anyway.
Attached patch patch v2Splinter Review
Per roc's suggestion.
Attachment #213488 - Attachment is obsolete: true
Attachment #213609 - Flags: superreview?(roc)
Attachment #213609 - Flags: review?(roc)
Attachment #213609 - Flags: superreview?(roc)
Attachment #213609 - Flags: superreview+
Attachment #213609 - Flags: review?(roc)
Attachment #213609 - Flags: review+
Checked in: Checking in layout/generic/nsFrame.cpp; /cvsroot/mozilla/layout/generic/nsFrame.cpp,v <-- nsFrame.cpp new revision: 3.623; previous revision: 3.622 done
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9alpha
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: