Closed
Bug 1347178
Opened 9 years ago
Closed 9 years ago
Port bug 1344629 to mailnews
Categories
(MailNews Core :: Backend, defect)
MailNews Core
Backend
Tracking
(thunderbird55 fixed, seamonkey2.52 fixed)
RESOLVED
FIXED
Thunderbird 55.0
People
(Reporter: jorgk-bmo, Assigned: frg)
Details
Attachments
(1 file, 1 obsolete file)
|
3.87 KB,
patch
|
jorgk-bmo
:
review+
|
Details | Diff | Splinter Review |
Fresh bustage:
mailnews/base/src/nsMessengerWinIntegration.cpp(964): error C2280: 'char16ptr_t nsLiteralString::get(void) const &&': attempting to reference a deleted function
mailnews/addrbook/src/nsAbMDBDirectory.cpp(86): error C2280: 'const mozilla::detail::nsCStringRepr::char_type *nsLiteralCString::get(void) const &&': attempting to reference a deleted function
Those callsites are:
deleteKey.Assign(NS_LITERAL_STRING(UNREADMAILNODEKEY).get());
rv = prefService->GetBranch(NS_LITERAL_CSTRING(PREF_LDAP_SERVER_TREE_NAME ".").get(), getter_AddRefs(prefBranch));
| Reporter | ||
Comment 1•9 years ago
|
||
I'll be unavailable for a few hours, but I'd try:
deleteKey.Assign(UNREADMAILNODEKEY);
and
prefService->GetBranch(PREF_LDAP_SERVER_TREE_NAME ".", getter_AddRefs(prefBranch));
| Assignee | ||
Comment 2•9 years ago
|
||
Need to go soon too so better not taking the bug. SeaMonkey compile is still running with the attached patch. Feel free to modify it if not working.
| Assignee | ||
Comment 3•9 years ago
|
||
This compiles. Not yet tested.
Attachment #8847148 -
Attachment is obsolete: true
| Assignee | ||
Comment 4•9 years ago
|
||
Comment on attachment 8847154 [details] [diff] [review]
1347178-strings-V2.patch
TB compiles too and doesn't crash on me so taking the bug.
Attachment #8847154 -
Flags: review?(jorgk)
| Assignee | ||
Updated•9 years ago
|
Assignee: nobody → frgrahl
| Assignee | ||
Updated•9 years ago
|
Status: NEW → ASSIGNED
Comment 5•9 years ago
|
||
TB builds here too.
| Reporter | ||
Comment 6•9 years ago
|
||
Comment on attachment 8847154 [details] [diff] [review]
1347178-strings-V2.patch
Review of attachment 8847154 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks!
Attachment #8847154 -
Flags: review?(jorgk) → review+
| Assignee | ||
Comment 7•9 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-seamonkey2.52:
--- → fixed
status-thunderbird55:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 55.0
| Reporter | ||
Comment 8•9 years ago
|
||
Sorry I couldn't assist here since I've just returned to my desk.
NS_LITERAL_CSTRING() produces an one-byte string, so NS_LITERAL_CSTRING("huhu").get() can just be replaced with "huhu".
NS_LITERAL_STRING() produces an two-byte string, so NS_LITERAL_STRING("huhu").get() needs to be replaced with u"huhu".
But then you figured that out despite my partly incorrect comment #1.
You need to log in
before you can comment on or make changes to this bug.
Description
•