Closed Bug 169536 Opened 22 years ago Closed 20 years ago

Unnecessary line of code

Categories

(Core :: Internationalization, defect)

x86
Windows NT
defect
Not set
minor

Tracking

()

RESOLVED FIXED
mozilla1.4alpha

People

(Reporter: joerg_brunsmann, Assigned: smontagu)

Details

(Keywords: intl)

Attachments

(1 file)

Summary: Unnecessary line of code → Unnecessary line of code
code issue, QA to yokoyama@netscape.com for now.
Keywords: intl
QA Contact: ruixu → yokoyama
code is still there, and from my limited knowledge of C++, doesn't look to have changed, so I guess this should be confirmed...
Severity: normal → minor
Status: UNCONFIRMED → NEW
Ever confirmed: true
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.4alpha
I think both roy and me are off mozilla for more than 2 years. If these bugs are still here now, I think the real stauts is 'won't fix'. If you want to reopen it, please find a new owner for it first.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → WONTFIX
Mass Reassign Please excuse the spam
Assignee: tetsuroy → nobody
Mass Re-opening Bugs Frank Tang Closed on Wensday March 02 for no reason, all the spam is his fault feel free to tar and feather him
Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---
Reassigning Franks old bugs to Jungshik Shin for triage - Sorry for spam
Assignee: nobody → jshin1987
Status: REOPENED → NEW
Assignee: jshin1987 → smontagu
Status: NEW → ASSIGNED
Attachment #176453 - Flags: review?(jshin1987)
Attachment #176453 - Flags: superreview?(neil.parkwaycc.co.uk)
(In reply to comment #1) > ... and also the cast at line > > http://lxr.mozilla.org/mozilla/source/intl/uconv/src/nsCharsetConverterManager.c > pp#138 This doesn't seem to exist any more.
Comment on attachment 176453 [details] [diff] [review] Remove the unnecessary line (and some others) r=jshin While you're at it, can you replace |res| with the standard |rv|?
Attachment #176453 - Flags: review?(jshin1987) → review+
I'll also fix a typo s/nsResult/nsresult/ <blush>
Comment on attachment 176453 [details] [diff] [review] Remove the unnecessary line (and some others) > if (!aProp.IsEmpty()) key.Append(aProp.get()); // yes, this param may be NULL While you're here can you fix this (twice) - aProp used to be a const PRUnichar* which explains the null test but that .get() is also silly. > nsresult res = NS_OK; > > if (mTitleBundle == NULL) { > res = LoadExtensibleBundle(NS_TITLE_BUNDLE_CATEGORY, &mTitleBundle); > if (NS_FAILED(res)) return res; > } This should use rv scoped inside the if (and the return on its own line too, as you're touching it anyway).
Attachment #176453 - Flags: superreview?(neil.parkwaycc.co.uk) → superreview+
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago20 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: