Closed Bug 230970 Opened 21 years ago Closed 21 years ago

nsExternalAppHandler needs no virtual functions

Categories

(Core Graveyard :: File Handling, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.7alpha

People

(Reporter: Biesinger, Assigned: Biesinger)

Details

Attachments

(1 file)

This class does not have any subclasses. The functions need not be virtual.
Attached patch patchSplinter Review
nsExternalProtocolHandler also does not need its virtual dtor nsExternalHelperAppService does need it, because it implements ::Release and does have nsOSHelperAppService as subclass, whose destructor should be called.
Attachment #139108 - Flags: review?(bz-vacation)
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.7alpha
Comment on attachment 139108 [details] [diff] [review] patch r=bzbarsky
Attachment #139108 - Flags: review?(bz-vacation) → review+
Comment on attachment 139108 [details] [diff] [review] patch I just realized... nsExternalProtocolHandler is a subclass of nsSupportsWeakReference, so it needs a virtual dtor (and probably gets one anyway); so I won't check the change to nsExternalProtocolHandler in
Attachment #139108 - Flags: superreview?(darin)
err, nevermind comment 3. it doesn't need a virtual destructor anyway. it will only get deleted through its own Release impl.
Comment on attachment 139108 [details] [diff] [review] patch sr=darin this non-virtual dtor thing should be used in more places.
Attachment #139108 - Flags: superreview?(darin) → superreview+
checked in
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
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: