Closed Bug 184075 Opened 23 years ago Closed 23 years ago

nsAboutRedirector should not use literal number

Categories

(Core :: Networking, defect, P2)

defect

Tracking

()

VERIFIED FIXED
mozilla1.3beta

People

(Reporter: Biesinger, Assigned: Biesinger)

Details

Attachments

(1 file)

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.
Attachment #108584 - Flags: superreview?(bzbarsky)
Attachment #108584 - Flags: review?(darin)
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+
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 on attachment 108584 [details] [diff] [review] patch mmm... non-fragile code... ;)
Attachment #108584 - Flags: superreview?(bzbarsky) → superreview+
sure, I tested it, and it works :)
Status: NEW → ASSIGNED
OS: Windows 98 → All
Priority: -- → P2
Hardware: PC → All
Target Milestone: --- → mozilla1.3beta
biesi: sorry, i should have checked more carefully at the CVS history :-(
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.

Attachment

General

Created:
Updated:
Size: