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)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: jst, Assigned: jst)

Details

Attachments

(1 file, 1 obsolete file)

Found this looking through some code...
Attachment #277634 - Flags: superreview?(jonas)
Attachment #277634 - Flags: review?(cbiesinger)
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+
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*)
Attached patch More cleanup.Splinter Review
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+
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
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: