Closed
Bug 710986
Opened 13 years ago
Closed 13 years ago
Possible typo in IsZPositionLEQ()
Categories
(Core :: Layout, defect)
Core
Layout
Tracking
()
RESOLVED
INVALID
People
(Reporter: Dolske, Unassigned)
References
Details
(Whiteboard: [pvs-studio])
From http://www.viva64.com/en/a/0078/,
2nd section in http://www.viva64.com/external-pictures/txt/mozilla-test.txt
V501 There are identical sub-expressions to the left and to the right of the '||' operator.
nsdisplaylist.cpp 767
static PRBool IsZPositionLEQ(nsDisplayItem* aItem1, nsDisplayItem* aItem2,
void* aClosure) {
if (!aItem1->GetUnderlyingFrame()->Preserves3D() ||
!aItem1->GetUnderlyingFrame()->Preserves3D()) {
return IsContentLEQ(aItem1, aItem2, aClosure);
}
...
}
I think there could be written like this.
if (!aItem1->GetUnderlyingFrame()->Preserves3D() ||
!aItem2->GetUnderlyingFrame()->Preserves3D()) {
Comment 1•13 years ago
|
||
Introduced with bug 505115, already fixed by bug 684759. Marking as invalid.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•