Port bug 1691913: Rename nsBaseHashtable::Put to InsertOrUpdate
Categories
(Thunderbird :: Upstream Synchronization, defect)
Tracking
(thunderbird_esr78 unaffected, thunderbird87 unaffected)
Tracking | Status | |
---|---|---|
thunderbird_esr78 | --- | unaffected |
thunderbird87 | --- | unaffected |
People
(Reporter: Paenglab, Assigned: Paenglab)
References
Details
Attachments
(3 files, 3 obsolete files)
29.22 KB,
patch
|
aleca
:
review+
|
Details | Diff | Splinter Review |
2.10 KB,
patch
|
mkmelin
:
review+
|
Details | Diff | Splinter Review |
5.82 KB,
patch
|
mkmelin
:
review+
|
Details | Diff | Splinter Review |
Assignee | ||
Comment 1•4 years ago
|
||
Simple exchanges. This builds for me.
Comment 2•4 years ago
|
||
Pushed by thunderbird@calypsoblue.org:
https://hg.mozilla.org/comm-central/rev/3a6e2573838c
Port bug 1691913: Rename nsBaseHashtable::Put to InsertOrUpdate. r=aleca,rjl
Comment 4•4 years ago
|
||
This didn't work entirely, there are other things that need porting.
I'll give it a try.
Updated•4 years ago
|
Comment 5•4 years ago
|
||
Comment 6•4 years ago
|
||
Comment on attachment 9205760 [details] [diff] [review]
1695274-bustage-fix.diff
empty patch, sorry.
Comment 7•4 years ago
|
||
Updated•4 years ago
|
Comment 8•4 years ago
|
||
Pushed by thunderbird@calypsoblue.org:
https://hg.mozilla.org/comm-central/rev/c9b0b24eb44e
Port bug 1691913: Rename nsBaseHashtable::Put to InsertOrUpdate. r=mkmelin
Comment 10•4 years ago
|
||
Comment 11•4 years ago
|
||
Comment 12•4 years ago
|
||
Comment 13•4 years ago
|
||
This should fix it and the broken test.
Comment 14•4 years ago
|
||
Comment 15•4 years ago
|
||
This isn't right. You need to use something like:
https://hg.mozilla.org/integration/autoland/rev/cf2c619858c1#l11.30
So instead of
- nsMsgKey pseudoKey = nsMsgKey_None;
newMsgHdr->GetMessageId(getter_Copies(newMessageId));
- m_pseudoHdrs.Get(newMessageId, &pseudoKey);
- if (notifier && pseudoKey != nsMsgKey_None) {
+ nsMsgKey pseudoKey = m_pseudoHdrs.Get(newMessageId);
+ if (notifier && pseudoKey) {
Add this:
+ nsMsgKey pseudoKey = m_pseudoHdrs.MaybeGet(newMessageId).valueOr(nsMsgKey_None);
and leave if (notifier && pseudoKey != nsMsgKey_None) {
.
Comment 16•4 years ago
|
||
Comment 17•4 years ago
|
||
Updated•4 years ago
|
Comment 18•4 years ago
|
||
Description
•