Closed
Bug 320334
Opened 19 years ago
Closed 19 years ago
Make never-overridden methods of nsIMAPGenericParser non-virtual and concatenate error flags.
Categories
(MailNews Core :: Networking: IMAP, defect)
MailNews Core
Networking: IMAP
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: engel, Assigned: engel)
References
Details
(Keywords: fixed1.8.1)
Attachments
(1 file, 1 obsolete file)
6.66 KB,
patch
|
Bienvenu
:
review+
|
Details | Diff | Splinter Review |
The following methods in |nsIMAPGenericParser| are never overridden, make them non-virtual.
SetConnected
ContinueParse
skip_to_CRLF
skip_to_close_paren
CreateString
CreateAstring
CreateNilString
CreateLiteral
CreateAtom
CreateQuoted
CreateParenGroup
Also, merge the status flags |nsIMAPGenericParser::fDisconnected| and |nsIMAPGenericParser::fSyntaxError|; this simplifies the often-invoked method |nsIMAPGenericParser::ContinueParse()|.
Finally, do no longer include "nsIMAPGenericParser.h" in nsIMAPNamespace.cpp and nsImapUrl.cpp.
Assignee | ||
Comment 1•19 years ago
|
||
Assignee | ||
Updated•19 years ago
|
Attachment #205921 -
Flags: review?(bienvenu)
Assignee | ||
Updated•19 years ago
|
Status: NEW → ASSIGNED
Comment 2•19 years ago
|
||
Comment on attachment 205921 [details] [diff] [review]
Make never-overridden methods non-virtual etc.
thx for the patch.
Instead of this:
if (connected)
+ fParserState = fParserState & ~stateDisconnectedFlag;
+ else
+ fParserState = fParserState | stateDisconnectedFlag;
}
can you do something like
fParserState |= stateDisconnectedFlag;
and
fParserState &= ~stateDisconnectedFlag;
Assignee | ||
Comment 3•19 years ago
|
||
Simplified code as suggested in Comment 2, thank you David.
Attachment #205921 -
Attachment is obsolete: true
Attachment #206019 -
Flags: review?
Attachment #205921 -
Flags: review?(bienvenu)
Assignee | ||
Updated•19 years ago
|
Attachment #206019 -
Flags: review? → review?(bienvenu)
Comment 4•19 years ago
|
||
David landed this 2005-12-19 09:27 PDT. David: can you mark review+ and FIXED? Thanks
Comment 5•19 years ago
|
||
Comment on attachment 206019 [details] [diff] [review]
Make never-overridden methods non-virtual etc. (v2)
thx, Hans-Andreas
Attachment #206019 -
Flags: review?(bienvenu) → review+
Updated•19 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Comment 6•19 years ago
|
||
Verified FIXED via LXR (and heavy IMAP usage/testing since its landing)
1.15 bienvenu%nventure.com 2005-12-19 09:27 fix 320334 make non-overridden methods non-virtual, patch by engel@physics.harvard.edu, r/sr=bienvenu
Status: RESOLVED → VERIFIED
Assignee | ||
Updated•19 years ago
|
Keywords: fixed1.8.1
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
•