Closed Bug 197583 Opened 22 years ago Closed 22 years ago

nsHTMLDocument::GetMidasCommandManager has code to cache but doesn't

Categories

(Core :: DOM: Editor, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED

People

(Reporter: dbaron, Assigned: Brade)

Details

Attachments

(1 file)

nsHTMLDocument::GetMidasCommandManager looks like it caches its result, but it doesn't. This is shown by the build warning: /builds/trunk/mozilla/content/html/document/src/nsHTMLDocument.cpp: In member function `nsresult nsHTMLDocument::GetMidasCommandManager(nsICommandManager**)': /builds/trunk/mozilla/content/html/document/src/nsHTMLDocument.cpp:4140: warning: declaration of `mMidasCommandManager' shadows a member of `this' (Of course, thanks to bug 75621, I'm the only one who sees these warnings.) The obvious fix is to remove "nsCOMPtr<nsICommandManager> " in the function before "mMidasCommandManager".
Attached patch patch suggested by dbaron (deleted) — Splinter Review
Attachment #117489 - Flags: superreview?(dbaron)
Attachment #117489 - Flags: review?(dbaron)
Attachment #117489 - Flags: superreview?(dbaron)
Attachment #117489 - Flags: superreview+
Attachment #117489 - Flags: review?(dbaron)
Attachment #117489 - Flags: review+
fix checked in; thx dbaron!
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
rs vrfy.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: