Closed
Bug 877746
Opened 12 years ago
Closed 11 years ago
Mark overriding methods as MOZ_OVERRIDE in /dom
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla24
People
(Reporter: Six, Assigned: Six)
Details
Attachments
(1 file, 2 obsolete files)
97.80 KB,
patch
|
Ms2ger
:
review+
|
Details | Diff | Splinter Review |
See description of MOZ_OVERRIDE in bug 733186 comment 0. Filing this bug on marking overriding most of methods as MOZ_OVERRIDE in /dom.
Assignee | ||
Comment 1•12 years ago
|
||
Has been build on my local Linux 64b correctly
Attachment #756129 -
Flags: review?(Ms2ger)
Comment 2•12 years ago
|
||
Comment on attachment 756129 [details] [diff] [review] Annotate ~230 methods with MOZ_OVERRIDE in /dom Review of attachment 756129 [details] [diff] [review]: ----------------------------------------------------------------- lgtm ::: dom/src/notification/DesktopNotification.h @@ +177,5 @@ > else > (void) Cancel(); > return true; > } > + void IPDLRelease() MOZ_OVERRIDE { Release(); } Please mark those 'virtual' too ::: dom/src/storage/DOMStorage.h @@ +30,2 @@ > virtual DOMStorageManager* GetManager() const { return mManager; } > virtual const DOMStorageCache* GetCache() const { return mCache; } Missed these two
Attachment #756129 -
Flags: review?(Ms2ger) → review+
Assignee | ||
Comment 3•12 years ago
|
||
Ok so to be sure: you want me to annotate > NS_IMETHOD_(bool) Recv__delete__(const bool& allow) > NS_IMETHOD_(void) IPDLRelease() about that: (In reply to :Ms2ger from comment #2) > ::: dom/src/storage/DOMStorage.h > @@ +30,2 @@ > > virtual DOMStorageManager* GetManager() const { return mManager; } > > virtual const DOMStorageCache* GetCache() const { return mCache; } I dont catch them due to a silly thing: in base class the return type is prefixed by namespace mozilla::dom:: and not in child class. i will see if it's still safe to ignore namespaces in return types.
Assignee | ||
Updated•12 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 4•12 years ago
|
||
diffs from precedent patch: - class nsOfflineResourceListSH has been removed from moz-central, then nsOfflineResourceListSH ::GetStringAt is not marked MOZ_OVERRIDE anymore (inexistant) - GetManager() and GetCache() are marked MOZ_OVERRIDE (directly by the script not manually) - Recv__delete__() and IPDLRelease() are marked as NS_IMETHOD(retType) everywhere
Attachment #756129 -
Attachment is obsolete: true
Attachment #757372 -
Flags: review?(Ms2ger)
Comment 5•12 years ago
|
||
(In reply to Arnaud Sourioux [:Six] from comment #4) > Created attachment 757372 [details] [diff] [review] > Annotate ~230 methods with MOZ_OVERRIDE in /dom (update with last comments) > > diffs from precedent patch: > - Recv__delete__() and IPDLRelease() are marked as NS_IMETHOD(retType) > everywhere Why's that? I don't think that's right.
Comment 6•12 years ago
|
||
Comment on attachment 757372 [details] [diff] [review] Annotate ~230 methods with MOZ_OVERRIDE in /dom (update with last comments) r=me if you change the NS_IMETHOD_(foo)s to just 'virtual foo'.
Attachment #757372 -
Flags: review?(Ms2ger) → review+
Assignee | ||
Comment 7•12 years ago
|
||
Corrected as you wish
Attachment #757372 -
Attachment is obsolete: true
Attachment #757379 -
Flags: review?(Ms2ger)
Updated•12 years ago
|
Attachment #757379 -
Flags: review?(Ms2ger) → review+
Assignee | ||
Updated•11 years ago
|
Assignee | ||
Updated•11 years ago
|
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Assignee | ||
Comment 8•11 years ago
|
||
Waiting for tpbl to finish before adding "checkin-needed" https://tbpl.mozilla.org/?tree=Try&rev=c0973f1b77d9
Keywords: checkin-needed
Assignee | ||
Comment 9•11 years ago
|
||
Wrong push, good version is there: https://tbpl.mozilla.org/?tree=Try&rev=57e3f99435fb
Comment 11•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/14bd2ec730ae
Flags: in-testsuite-
Keywords: checkin-needed
Comment 12•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/14bd2ec730ae
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•