Closed Bug 72781 Opened 24 years ago Closed 20 years ago

rewrite getter_AddRefs(pAddressLists->ElementAt(j)) using QueryElementAt

Categories

(SeaMonkey :: MailNews: Address Book & Contacts, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: timeless, Assigned: standard8)

Details

Attachments

(1 file)

from Bugzilla Bug 70989 Clean up lots of "shadows" and other common warnings * mailnews/addrbook: - nsCOMPtr<nsISupports> pSupport = getter_AddRefs(pAddressLists->ElementAt(j)); + pSupport = getter_AddRefs(pAddressLists->ElementAt(j)); nsCOMPtr<nsIAbCard> cardInList(do_QueryInterface(pSupport, &rv)); You have tabs here in your + line, and can we use QueryElementAt to save the explicit QI?
QA Contact: esther → stephend
Reversing database corruption caused by bug 95857 and bug 95798. Pay no attention to the man behind the curtain.
note to self: I think I have another bug somewhere else about this. (Those who fail to patch before are bound to report their bugs again and patch later...)
Status: NEW → ASSIGNED
Whiteboard: DUPEME
Product: Browser → Seamonkey
Timeless said (over irc) I could take this one off him, therefore re-assigning.
Assignee: timeless → bugzilla
Status: ASSIGNED → NEW
Whiteboard: DUPEME
Attached patch PatchSplinter Review
This patch fixes the only case I could find in address book where this happens.
Attachment #183763 - Flags: superreview?(bienvenu)
Attachment #183763 - Flags: review?(bienvenu)
Status: NEW → ASSIGNED
Attachment #183763 - Flags: superreview?(bienvenu)
Attachment #183763 - Flags: superreview+
Attachment #183763 - Flags: review?(bienvenu)
Attachment #183763 - Flags: review+
Comment on attachment 183763 [details] [diff] [review] Patch Requesting approval for checkin for this minor change - it is a small code tidy up that affects both suite & tb, but should be low risk.
Attachment #183763 - Flags: approval1.8b2?
Attachment #183763 - Flags: approval-aviary1.1a1?
Comment on attachment 183763 [details] [diff] [review] Patch a=asa for checkin to 1.8b2/1.1a1
Attachment #183763 - Flags: approval1.8b2?
Attachment #183763 - Flags: approval1.8b2+
Attachment #183763 - Flags: approval-aviary1.1a1?
Timeless checked this in: 2005-05-19 13:22 timeless%mozdev.org mozilla/ mailnews/ base/ resources/ locale/ en-US/ messenger.properties 1.118 1/1
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Opps try getting the right checkin ;-) 2005-05-19 13:21 timeless%mozdev.org mozilla/ mailnews/ addrbook/ src/ nsDirectoryDataSource.cpp 1.66 3/3
QA Contact: stephend → technutz
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: