Closed
Bug 169536
Opened 22 years ago
Closed 20 years ago
Unnecessary line of code
Categories
(Core :: Internationalization, defect)
Tracking
()
RESOLVED
FIXED
mozilla1.4alpha
People
(Reporter: joerg_brunsmann, Assigned: smontagu)
Details
(Keywords: intl)
Attachments
(1 file)
3.40 KB,
patch
|
jshin1987
:
review+
neil
:
superreview+
|
Details | Diff | Splinter Review |
The code shown at this line
http://lxr.mozilla.org/mozilla/source/intl/uconv/src/nsCharsetConverterManager.c
pp#125
is unnecessary
Reporter | ||
Comment 1•22 years ago
|
||
... and also the cast at line
http://lxr.mozilla.org/mozilla/source/intl/uconv/src/nsCharsetConverterManager.c
pp#138
Summary: Unnecessary line of code → Unnecessary line of code
code issue, QA to yokoyama@netscape.com for now.
Keywords: intl
QA Contact: ruixu → yokoyama
Comment 3•22 years ago
|
||
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
Updated•22 years ago
|
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.4alpha
Comment 4•20 years ago
|
||
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
Comment 6•20 years ago
|
||
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 → ---
Comment 7•20 years ago
|
||
Reassigning Franks old bugs to Jungshik Shin for triage - Sorry for spam
Assignee: nobody → jshin1987
Status: REOPENED → NEW
Assignee | ||
Comment 8•20 years ago
|
||
Assignee | ||
Updated•20 years ago
|
Attachment #176453 -
Flags: superreview?(neil.parkwaycc.co.uk)
Assignee | ||
Comment 9•20 years ago
|
||
(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 10•20 years ago
|
||
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+
Assignee | ||
Comment 11•20 years ago
|
||
I'll also fix a typo s/nsResult/nsresult/ <blush>
Comment 12•20 years ago
|
||
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+
Assignee | ||
Comment 13•20 years ago
|
||
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago → 20 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•