Closed
Bug 334288
Opened 19 years ago
Closed 12 years ago
use early returns in nsObjectLoadingContent::IsSupportedDocument
Categories
(Core Graveyard :: Plug-ins, enhancement)
Core Graveyard
Plug-ins
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla17
People
(Reporter: timeless, Assigned: johns)
References
()
Details
Attachments
(1 file, 2 obsolete files)
3.04 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
coverity doesn't like this code, but it's wrong in claiming that it's dangerous.
i don't like this code either, so this bug is a request for:
if (!info)
return PR_FALSE;
it simplifies the code and happens to quiet coverity (which complains that supported is used uninitialized - in the impossible case of do_GetService setting info to null and rv to ns_ok).
Assignee: nobody → timeless
Status: NEW → ASSIGNED
Attachment #218659 -
Flags: superreview?(bzbarsky)
Attachment #218659 -
Flags: review?(cbiesinger)
Comment 2•19 years ago
|
||
Comment on attachment 218659 [details] [diff] [review]
use early returns
Single-line ifs should be braced in this code.
Also, I'd like to see both the -w diff and a normal one.
Attachment #218659 -
Flags: superreview?(bzbarsky) → superreview-
Comment 3•19 years ago
|
||
Comment on attachment 218659 [details] [diff] [review]
use early returns
what bz said
Attachment #218659 -
Flags: review?(cbiesinger)
Assignee | ||
Comment 4•12 years ago
|
||
Assignee | ||
Comment 5•12 years ago
|
||
Comment on attachment 650304 [details] [diff] [review]
Use early returns in nsObjectLoadingContent::IsSupportedDocument
Resurrecting from the grave!
Attachment #650304 -
Flags: review?(bzbarsky)
Assignee | ||
Updated•12 years ago
|
Assignee: timeless → jschoenick
OS: Mac OS X → All
Hardware: PowerPC → All
Assignee | ||
Updated•12 years ago
|
Attachment #218659 -
Attachment is obsolete: true
Assignee | ||
Comment 6•12 years ago
|
||
Maybe a version that compiles would be preferable
Attachment #650304 -
Attachment is obsolete: true
Attachment #650304 -
Flags: review?(bzbarsky)
Attachment #650344 -
Flags: review?(bzbarsky)
Comment 7•12 years ago
|
||
Comment on attachment 650344 [details] [diff] [review]
Use early returns in nsObjectLoadingContent::IsSupportedDocument
r=me
Attachment #650344 -
Flags: review?(bzbarsky) → review+
Assignee | ||
Comment 8•12 years ago
|
||
Survived a try push here:
https://tbpl.mozilla.org/?tree=Try&rev=02f602af452c
Landed on m-i:
http://hg.mozilla.org/integration/mozilla-inbound/rev/08631f0a9b1d
Comment 9•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla17
Updated•2 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•