Closed Bug 1347178 Opened 9 years ago Closed 9 years ago

Port bug 1344629 to mailnews

Categories

(MailNews Core :: Backend, defect)

defect
Not set
normal

Tracking

(thunderbird55 fixed, seamonkey2.52 fixed)

RESOLVED FIXED
Thunderbird 55.0
Tracking Status
thunderbird55 --- fixed
seamonkey2.52 --- fixed

People

(Reporter: jorgk-bmo, Assigned: frg)

Details

Attachments

(1 file, 1 obsolete file)

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));
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));
Attached patch 1347178-strings.patch (obsolete) — Splinter Review
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.
This compiles. Not yet tested.
Attachment #8847148 - Attachment is obsolete: true
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: nobody → frgrahl
Status: NEW → ASSIGNED
TB builds here too.
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+
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 55.0
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.

Attachment

General

Created:
Updated:
Size: