Closed Bug 317911 Opened 19 years ago Closed 19 years ago

weird nsCOMPtr<> construction in nsAddrDatabase ctor

Categories

(MailNews Core :: Address Book, defect)

defect
Not set
trivial

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: bernard.alleysson, Assigned: bernard.alleysson)

Details

Attachments

(1 file)

m_dbName is declared as "nsCOMPtr<nsIFile> m_dbName;" in nsAddrDatabase.h
and is initialized with m_dbName("") in nsAddrDatabase.cpp, from a char * ?!
bugzilla, could you review this trivial patch, thanks !
Attachment #204267 - Flags: review?
Comment on attachment 204267 [details] [diff] [review]
use default nsCOMPtr<> ctor

oops, Could you review this trivial patch, thanks !
Attachment #204267 - Flags: review? → review?(bienvenu)
Comment on attachment 204267 [details] [diff] [review]
use default nsCOMPtr<> ctor

This is a hangover from when I changed m_dbName from nsFileSpec to nsCOMPtr<nsIFile>.

I don't see a problem with using the default nsCOMPtr<> constructor here.
Attachment #204267 - Flags: superreview?
Attachment #204267 - Flags: superreview?
Attachment #204267 - Flags: superreview+
Attachment #204267 - Flags: review?(bienvenu)
Attachment #204267 - Flags: review+
Mark, could you do the checkin for me ? thx
Assigning to bernard as he provided the patch for the fix.
Assignee: nobody → bernard.alleysson
Patch checked in, marking fixed.

cvsroot/mozilla/mailnews/addrbook/src/nsAddrDatabase.cpp,v  <--  nsAddrDatabase.cpp
new revision: 1.139; previous revision: 1.138

Thanks for the fix Bernard :-)
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Verified FIXED via code inspection: LXR
Status: RESOLVED → VERIFIED
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: