Closed
Bug 575156
Opened 14 years ago
Closed 14 years ago
Apply the needed NS_NEWXPCOM/NS_DELETEXPCOM changes from Bug 562387 to Comm-Central
Categories
(MailNews Core :: Backend, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 3.3a1
People
(Reporter: ewong, Assigned: ewong)
References
Details
Attachments
(2 files, 2 obsolete files)
10.52 KB,
patch
|
neil
:
review+
standard8
:
superreview+
ewong
:
feedback+
|
Details | Diff | Splinter Review |
702 bytes,
patch
|
Callek
:
review+
|
Details | Diff | Splinter Review |
Removing NS_NEWXPCOM/NS_DELETEXPCOM from the Comm-Central tree and replace it with new/delete.
Assignee | ||
Updated•14 years ago
|
Assignee: nobody → ewong
Status: NEW → ASSIGNED
Updated•14 years ago
|
Component: MailNews: Backend → Backend
Product: SeaMonkey → MailNews Core
QA Contact: mailnews-backend → backend
Assignee | ||
Comment 1•14 years ago
|
||
Attachment #454430 -
Flags: feedback?(bugspam.Callek)
Assignee | ||
Updated•14 years ago
|
Attachment #454430 -
Flags: review?(neil)
Comment 2•14 years ago
|
||
Comment on attachment 454430 [details] [diff] [review] Removed references of NS_NEWXPCOM/NS_DELETEXPCOM in comm-central This patch looks good, but we also need the directory/xpcom changes done too. (+ Please kill the related comment in calendar/ for NS_NEWXPCOM)
Attachment #454430 -
Flags: feedback?(bugspam.Callek) → feedback+
Assignee | ||
Comment 3•14 years ago
|
||
(Fixed an incorrect reference.)
Attachment #454449 -
Flags: review?(neil)
Attachment #454449 -
Flags: feedback+
Assignee | ||
Updated•14 years ago
|
Attachment #454449 -
Attachment is obsolete: true
Attachment #454449 -
Flags: review?(neil)
Assignee | ||
Updated•14 years ago
|
Attachment #454449 -
Attachment is obsolete: false
Attachment #454449 -
Flags: review?(neil)
Assignee | ||
Updated•14 years ago
|
Attachment #454430 -
Attachment is obsolete: true
Attachment #454430 -
Flags: review?(neil)
Comment 4•14 years ago
|
||
Comment on attachment 454449 [details] [diff] [review] Removed references of NS_NEWXPCOM/NS_DELETEXPCOM in comm-central >- nsMsgDBView* newMsgDBView; >- >- NS_NEWXPCOM(newMsgDBView, nsMsgDBView); >+ nsMsgDBView* newMsgDBView = new nsMsgDBView(); >+ [Weird hg diff bug? Compare below] >- nsMsgSearchDBView* newMsgDBView; >+ nsMsgSearchDBView* newMsgDBView = new nsMsgSearchDBView(); > >- NS_NEWXPCOM(newMsgDBView, nsMsgSearchDBView); > { >- NS_NEWXPCOM(m_compFields, nsMsgCompFields); >+ nsMsgCompFields* m_compFields = new nsMsgCompFields(); This one looks wrong, I think?
Comment 5•14 years ago
|
||
I presume that you are going to do directory/ and calendar/ later?
Assignee | ||
Comment 6•14 years ago
|
||
(In reply to comment #5) > I presume that you are going to do directory/ and calendar/ later? Yes. I made a new bug for directory/. Will do calendar/ next. Just need to fix up this patch first.
Assignee | ||
Comment 7•14 years ago
|
||
(In reply to comment #4) > (From update of attachment 454449 [details] [diff] [review]) > >- nsMsgDBView* newMsgDBView; > >- > >- NS_NEWXPCOM(newMsgDBView, nsMsgDBView); > >+ nsMsgDBView* newMsgDBView = new nsMsgDBView(); > >+ > [Weird hg diff bug? Compare below] > >- nsMsgSearchDBView* newMsgDBView; > >+ nsMsgSearchDBView* newMsgDBView = new nsMsgSearchDBView(); > > > >- NS_NEWXPCOM(newMsgDBView, nsMsgSearchDBView); Not really weird. For the first diff, I replaced NS_NEWXPCOM(..) with nsMsgDBView* newMsgDBView = new nsMsgDBView();. For the 2nd diff, I replaced nsMsgSearchDBView* newMsgDBView; with nsMsgSearchDBView* newMsgDBView = new nsMsgSearchDBView(); and then deleted the NS_NEWXPCOM(...) line. Although when I did it, I didn't think it would make any difference; but apparently it does. Might this be a problem in the future? > > > { > >- NS_NEWXPCOM(m_compFields, nsMsgCompFields); > >+ nsMsgCompFields* m_compFields = new nsMsgCompFields(); > This one looks wrong, I think?
Assignee | ||
Comment 8•14 years ago
|
||
Attachment #454449 -
Attachment is obsolete: true
Attachment #454756 -
Flags: review?(neil)
Attachment #454756 -
Flags: feedback+
Attachment #454449 -
Flags: review?(neil)
Assignee | ||
Comment 9•14 years ago
|
||
calendar/ only contains one NS_NEWXPCOM instance and it is a comment one. I'm attaching it to this bug instead of creating a new one.
Attachment #454760 -
Flags: review?(bugspam.Callek)
Updated•14 years ago
|
Attachment #454760 -
Flags: review?(bugspam.Callek) → review+
Updated•14 years ago
|
Attachment #454756 -
Attachment is patch: true
Attachment #454756 -
Attachment mime type: application/octet-stream → text/plain
Updated•14 years ago
|
Attachment #454756 -
Flags: review?(neil) → review+
Comment 10•14 years ago
|
||
Comment on attachment 454756 [details] [diff] [review] Removed references of NS_NEWXPCOM/NS_DELETEXPCOM in comm-central (v2) Strictly speaking you still need sr for touching mailnews, so sr=Standard8.
Attachment #454756 -
Flags: superreview+
Comment 11•14 years ago
|
||
Both patches checked in to fix further c-c bustage now the core patch landed: http://hg.mozilla.org/comm-central/rev/5550f06d4b83 http://hg.mozilla.org/comm-central/rev/4178007c058c
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 3.2a1
You need to log in
before you can comment on or make changes to this bug.
Description
•