Closed
Bug 393125
Opened 18 years ago
Closed 16 years ago
Remove manual QI calls etc from plugin code.
Categories
(Core Graveyard :: Plug-ins, defect)
Core Graveyard
Plug-ins
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: jst, Assigned: jst)
Details
Attachments
(1 file, 1 obsolete file)
|
16.27 KB,
patch
|
sicking
:
superreview+
|
Details | Diff | Splinter Review |
Found this looking through some code...
Attachment #277634 -
Flags: superreview?(jonas)
Attachment #277634 -
Flags: review?(cbiesinger)
Comment 1•18 years ago
|
||
Comment on attachment 277634 [details] [diff] [review]
Clean up a bunch of oh-so-1999 code :)
+ // Uh, what's the point of this?
aOwner->GetInstance(mInstance);
NS_IF_RELEASE(mInstance);
Cute...
Attachment #277634 -
Flags: review?(cbiesinger) → review+
Comment 2•18 years ago
|
||
Initialize has the same seemingly useless code. looks like mInstance is entirely unused?
At a guess, from the comment in the .h file I would say they wanted to keep a weak reference but missed the fact that NS_IF_RELEASE nulls out the pointer. (and the comment about mOwner is a lie *sigh*)
| Assignee | ||
Comment 3•18 years ago
|
||
Indeed. I removed mInstance entirely, and made mOwner an nsCOMPtr. Also nuked kIOutputStreamIID.
Attachment #277634 -
Attachment is obsolete: true
Attachment #277774 -
Flags: superreview?(jonas)
Attachment #277634 -
Flags: superreview?(jonas)
Attachment #277774 -
Flags: superreview?(jonas) → superreview+
| Assignee | ||
Comment 4•16 years ago
|
||
The patch here is obsolete by now due to a ton of other cleanup that's been done by now. Marking INVALID.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → INVALID
Updated•3 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•