Closed
Bug 184075
Opened 23 years ago
Closed 23 years ago
nsAboutRedirector should not use literal number
Categories
(Core :: Networking, defect, P2)
Core
Networking
Tracking
()
VERIFIED
FIXED
mozilla1.3beta
People
(Reporter: Biesinger, Assigned: Biesinger)
Details
Attachments
(1 file)
|
771 bytes,
patch
|
darin.moz
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
currently, AboutRedirector has a line like this:
static const int kRedirTotal = 4; // sizeof(kRedirMap)/sizeof(*kRedirMap)
instead, it should use the piece of code that is commented out... unless there
is a reason not to do that?
I'll attach a patch in a second; darin/bz, please review or tell me why it's a
bad idea.
| Assignee | ||
Comment 1•23 years ago
|
||
| Assignee | ||
Updated•23 years ago
|
Attachment #108584 -
Flags: superreview?(bzbarsky)
Attachment #108584 -
Flags: review?(darin)
Comment 2•23 years ago
|
||
Comment on attachment 108584 [details] [diff] [review]
patch
cvs blame says you checked in the patch that commented out that line of code
(see bug 127252). what were your reasons for doing so? off hand, your patch
here seems valid, but can you please test it to make sure that it works as
expected?
Attachment #108584 -
Flags: review?(darin) → review+
| Assignee | ||
Comment 3•23 years ago
|
||
er, no... my patch did this:
-static const int kRedirTotal = 3; // sizeof(kRedirMap)/sizeof(*kRedirMap)
+static const int kRedirTotal = 4; // sizeof(kRedirMap)/sizeof(*kRedirMap)
(see http://bugzilla.mozilla.org/attachment.cgi?id=70920&action=view)
I just adjusted the number, not changed the comment
Comment 4•23 years ago
|
||
Comment on attachment 108584 [details] [diff] [review]
patch
mmm... non-fragile code... ;)
Attachment #108584 -
Flags: superreview?(bzbarsky) → superreview+
| Assignee | ||
Comment 5•23 years ago
|
||
sure, I tested it, and it works :)
| Assignee | ||
Updated•23 years ago
|
Status: NEW → ASSIGNED
OS: Windows 98 → All
Priority: -- → P2
Hardware: PC → All
Target Milestone: --- → mozilla1.3beta
Comment 6•23 years ago
|
||
biesi: sorry, i should have checked more carefully at the CVS history :-(
| Assignee | ||
Comment 7•23 years ago
|
||
fixed
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
VERIFIED: lxr.
I had to do some URL hacking in CVS history to get the view that showed the
pre-cbiesinger@web.de changes to that line...
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•