Closed
Bug 369913
Opened 17 years ago
Closed 17 years ago
Remove Duplicated code in nsIImportService and nsMsgI18N.h/cpp
Categories
(MailNews Core :: Backend, defect)
MailNews Core
Backend
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: standard8, Assigned: standard8)
References
(Blocks 1 open bug)
Details
(Keywords: memory-footprint)
Attachments
(6 files)
5.88 KB,
patch
|
Bienvenu
:
review+
Bienvenu
:
superreview+
|
Details | Diff | Splinter Review |
5.84 KB,
patch
|
Bienvenu
:
review+
Bienvenu
:
superreview+
|
Details | Diff | Splinter Review |
12.04 KB,
patch
|
Bienvenu
:
review-
Bienvenu
:
superreview-
|
Details | Diff | Splinter Review |
15.60 KB,
patch
|
Details | Diff | Splinter Review | |
3.64 KB,
patch
|
Details | Diff | Splinter Review | |
25.92 KB,
patch
|
Details | Diff | Splinter Review |
The import service defines SystemStringToUnicode and SystemStringFromUnicode: http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/mailnews/import/src/nsImportService.cpp&rev=1.53&mark=141-205,207-269#140 The nsMsgI18N.h/cpp implementations of these are very similar: http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/mailnews/base/util/nsMsgI18N.cpp&rev=1.96&mark=71-131,133-197#70 and there's a couple of helper functions that'll add the missing parts. If we change the code that uses the import service to use the nsMsgI18N code, then we reduce duplication, and stop mailnews/addrbook/src and mailnews/base/search/src needing to require mailnews/import (not anything major, but still nice tidy up ;-) )
Assignee | ||
Comment 1•17 years ago
|
||
This removes the "duplication" of SystemStringFromUnicode and uses the msg base util implementation. Note that SystemStringFromUnicode uses kPlatformCharsetSel_FileName for getting the file name which is why I've used nsMsgI18NFileSystemCharset() for getting the system charset to supply to the msg base util implementation.
Attachment #254671 -
Flags: superreview?(bienvenu)
Attachment #254671 -
Flags: review?(bienvenu)
Comment 2•17 years ago
|
||
Comment on attachment 254671 [details] [diff] [review] Removes duplication of SystemStringFromUnicode v1 (checked in) thx, Mark!
Attachment #254671 -
Flags: superreview?(bienvenu)
Attachment #254671 -
Flags: superreview+
Attachment #254671 -
Flags: review?(bienvenu)
Attachment #254671 -
Flags: review+
Assignee | ||
Comment 3•17 years ago
|
||
Comment on attachment 254671 [details] [diff] [review] Removes duplication of SystemStringFromUnicode v1 (checked in) I checked this patch in with an additional uuid update in nsIImportService that we'd both missed.
Attachment #254671 -
Attachment description: Removes duplication of SystemStringFromUnicode v1 → Removes duplication of SystemStringFromUnicode v1 (checked in)
Assignee | ||
Comment 4•17 years ago
|
||
Part 2 swaps the use of the functions in mailnews/base/search from the import versions to the nsMsgI18n versions. The added benefit is we remove the mailnews/import dependency that mailnews/base/search has.
Attachment #257142 -
Flags: superreview?(bienvenu)
Attachment #257142 -
Flags: review?(bienvenu)
Comment 5•17 years ago
|
||
Comment on attachment 257142 [details] [diff] [review] Part 2 - use the nsMsgI18n versions in mailnews/base/search (checked in) thx, Mark
Attachment #257142 -
Flags: superreview?(bienvenu)
Attachment #257142 -
Flags: superreview+
Attachment #257142 -
Flags: review?(bienvenu)
Attachment #257142 -
Flags: review+
Assignee | ||
Updated•17 years ago
|
Attachment #257142 -
Attachment description: Part 2 - use the nsMsgI18n versions in mailnews/base/search → Part 2 - use the nsMsgI18n versions in mailnews/base/search (checked in)
Assignee | ||
Comment 6•17 years ago
|
||
David, non -w patch coming up in a mo. Could you test this on windows for me please?
Attachment #258012 -
Flags: superreview?(bienvenu)
Attachment #258012 -
Flags: review?(bienvenu)
Assignee | ||
Comment 7•17 years ago
|
||
Comment 8•17 years ago
|
||
Mark, I had to wrap a few char * params with nsDependentCString to get nsOESettings.cpp to compile If you generate a new patch with those changes, I can review that...
Comment 9•17 years ago
|
||
Comment on attachment 258012 [details] [diff] [review] Final Part - rest of duplicated code in mailnews/import (diff -w) nsOutlookSettings.cpp didn't have the corresponding changes - I'll try to apply the same pattern as your other changes to that file.
Attachment #258012 -
Flags: superreview?(bienvenu)
Attachment #258012 -
Flags: superreview-
Attachment #258012 -
Flags: review?(bienvenu)
Attachment #258012 -
Flags: review-
Comment 10•17 years ago
|
||
Mark, I had to make a few more changes - this patch compiles for me. Do you want to make your own diff from this, or just have me land this (after I review it)?
Assignee | ||
Comment 11•17 years ago
|
||
(In reply to comment #10) > Created an attachment (id=258055) [details] > patch that compiles for me. > > Mark, I had to make a few more changes - this patch compiles for me. Do you > want to make your own diff from this, or just have me land this (after I review > it)? > David, I've had a look at your changes and I'm happy with it as it is, so feel free to review & land. Thanks.
Updated•17 years ago
|
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Comment 13•17 years ago
|
||
re-opening to fix assignment.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Updated•17 years ago
|
Assignee: nobody → bugzilla
Status: REOPENED → NEW
Updated•17 years ago
|
Status: NEW → RESOLVED
Closed: 17 years ago → 17 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 14•17 years ago
|
||
Thanks David.
Updated•16 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•