Closed
Bug 257386
Opened 20 years ago
Closed 19 years ago
Poorly written code in nsImapMailFolder.cpp
Categories
(MailNews Core :: Networking: IMAP, defect)
MailNews Core
Networking: IMAP
Tracking
(Not tracked)
VERIFIED
FIXED
Future
People
(Reporter: csthomas, Assigned: csthomas)
References
()
Details
Attachments
(1 file, 5 obsolete files)
5.63 KB,
patch
|
emaijala+moz
:
review+
neil
:
superreview+
|
Details | Diff | Splinter Review |
Ugly code.
Assignee | ||
Updated•20 years ago
|
Assignee | ||
Comment 1•20 years ago
|
||
Assignee | ||
Updated•20 years ago
|
Attachment #157373 -
Flags: superreview?(shaver)
Attachment #157373 -
Flags: review?(ere)
Assignee | ||
Updated•20 years ago
|
Status: NEW → ASSIGNED
Comment 2•20 years ago
|
||
Comment on attachment 157373 [details] [diff] [review] Make code nicer Why not clean up the usage of rv while at it?
Assignee | ||
Comment 3•20 years ago
|
||
Attachment #157373 -
Attachment is obsolete: true
Assignee | ||
Updated•20 years ago
|
Attachment #157373 -
Flags: superreview?(shaver)
Attachment #157373 -
Flags: review?(ere)
Assignee | ||
Updated•20 years ago
|
Attachment #157728 -
Flags: superreview?(shaver)
Attachment #157728 -
Flags: review?(ere)
Assignee | ||
Updated•20 years ago
|
Attachment #157728 -
Attachment is obsolete: true
Attachment #157728 -
Flags: superreview?(shaver)
Attachment #157728 -
Flags: review?(ere)
Assignee | ||
Comment 4•20 years ago
|
||
Do we care about the return value here? It sets rv, but returns openErr http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/mailnews/imap/src/nsImapMailFolder.cpp#2005
Comment 5•20 years ago
|
||
we want to return openErr. That's what really indicates the success or failure of opening the db...
Assignee | ||
Comment 6•20 years ago
|
||
I was actually asking about the line: rv = (*folderInfo)->SetProperty("onlineName", autoOnlineName); Do we care about rv? The current code ignores it.
Assignee | ||
Comment 7•20 years ago
|
||
Assignee | ||
Updated•20 years ago
|
Attachment #157893 -
Attachment is obsolete: true
Assignee | ||
Comment 8•20 years ago
|
||
Assignee | ||
Updated•20 years ago
|
Attachment #157895 -
Attachment is obsolete: true
Assignee | ||
Comment 9•20 years ago
|
||
<biesi-away> that could deal with some vertical whitespace <biesi-away> s/deal with/use/
Assignee | ||
Updated•20 years ago
|
Attachment #157897 -
Flags: superreview?(shaver)
Attachment #157897 -
Flags: review?(ere)
Assignee | ||
Updated•20 years ago
|
Whiteboard: r?
Comment 10•20 years ago
|
||
Comment on attachment 157897 [details] [diff] [review] Patch v3.2 > + if(!db || !folderInfo || !mDatabase) You can't check mDatabase before you have called OpenDatabase(). > + if (NS_FAILED((*folderInfo)->GetCharPtrProperty("onlineName", getter_Copies(onlineName)))) > + return NS_ERROR_UNEXPECTED; Could we return the real error code that GetCharPtrProperty returned?
Attachment #157897 -
Flags: superreview?(shaver)
Attachment #157897 -
Flags: review?(ere)
Attachment #157897 -
Flags: review-
Assignee | ||
Comment 11•20 years ago
|
||
Attachment #157897 -
Attachment is obsolete: true
Assignee | ||
Updated•20 years ago
|
Attachment #157979 -
Flags: superreview?(shaver)
Attachment #157979 -
Flags: review?(ere)
Updated•20 years ago
|
Attachment #157979 -
Flags: review?(ere) → review+
Assignee | ||
Updated•20 years ago
|
Flags: blocking1.8a4?
Updated•20 years ago
|
Flags: blocking1.8a4? → blocking1.8a4-
Assignee | ||
Updated•20 years ago
|
Attachment #157979 -
Flags: superreview?(shaver) → superreview?(bienvenu)
Updated•20 years ago
|
Product: MailNews → Core
Assignee | ||
Updated•20 years ago
|
Attachment #157979 -
Flags: superreview?(bienvenu) → superreview?(neil.parkwaycc.co.uk)
Assignee | ||
Updated•20 years ago
|
Status: ASSIGNED → NEW
Assignee | ||
Updated•20 years ago
|
Target Milestone: --- → Future
Assignee | ||
Updated•19 years ago
|
Whiteboard: r? → sr?
Comment 12•19 years ago
|
||
Comment on attachment 157979 [details] [diff] [review] Patch v4 >+ rv = (*folderInfo)->GetCharPtrProperty("onlineName", getter_Copies(onlineName)); >+ NS_ENSURE_SUCCESS(rv, rv); Nit: don't use this, use if (NS_FAILED(rv)) return rv;
Attachment #157979 -
Flags: superreview?(neil.parkwaycc.co.uk) → superreview+
Assignee | ||
Comment 13•19 years ago
|
||
Unrotted and checked in.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Whiteboard: sr?
Verified FIXED via code inspection (LXR).
Status: RESOLVED → VERIFIED
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
•