Closed
Bug 328876
Opened 19 years ago
Closed 19 years ago
Avoid compiler warning in nsFrame::GetSelectionClosestFrame()
Categories
(Core :: Layout, defect)
Core
Layout
Tracking
()
RESOLVED
FIXED
mozilla1.9alpha1
People
(Reporter: uriber, Assigned: uriber)
References
()
Details
Attachments
(1 file, 1 obsolete file)
|
1.49 KB,
patch
|
roc
:
review+
roc
:
superreview+
|
Details | Diff | Splinter Review |
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.
| Assignee | ||
Comment 1•19 years ago
|
||
Attachment #213488 -
Flags: superreview?(roc)
Attachment #213488 -
Flags: review?(sharparrow1)
Comment 2•19 years ago
|
||
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.
| Assignee | ||
Comment 5•19 years ago
|
||
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+
| Assignee | ||
Comment 6•19 years ago
|
||
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.
Description
•