Closed Bug 273080 Opened 20 years ago Closed 20 years ago

Remove double assignment in |fNextToken = nsIMAPGenericParser::GetNextToken()|

Categories

(MailNews Core :: Networking: IMAP, defect)

defect
Not set
minor

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: engel, Assigned: engel)

References

Details

Attachments

(1 file)

Note that |char *nsIMAPGenericParser::GetNextToken()| is always invoked as
|fNextToken = GetNextToken()|.  This is somewhat redundant, since
|GetNextToken()| actually returns |fNextToken|. 

This double assignment should be removed, e.g., by replacing |char
*GetNextToken()| with |void AdvanceToNextToken()|.  This makes the code more
readable and even shrinks the (non-debug) binary by ~1 KB.
Trivial patch.	Some comments needed word-wrapping.
Attachment #167798 - Flags: review?(bienvenu)
Status: NEW → ASSIGNED
Attachment #167798 - Flags: review?(bienvenu) → review+
Attachment #167798 - Flags: superreview?(dmose)
Comment on attachment 167798 [details] [diff] [review]
remove double assignment and replace GetNextToken by AdvanceToNextToken

sr=dmose ; nice bloat find!
Attachment #167798 - Flags: superreview?(dmose) → superreview+
Fix landed by Neil:

2004-12-07 16:02
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Verified FIXED through LXR.
Status: RESOLVED → VERIFIED
Blocks: 313038
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: