Closed Bug 306259 Opened 19 years ago Closed 19 years ago

Nits in nsPrintOptionsImpl

Categories

(Core :: Printing: Output, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: bastiaan, Assigned: bastiaan)

Details

Attachments

(1 file, 1 obsolete file)

* Prefer construction over assignment.
* Make mDefaultFont a concrete type rather than a pointer.
* Use more nice macros.
Attached patch patch v1 (obsolete) — Splinter Review
Attachment #194113 - Flags: superreview?(dmose)
Attachment #194113 - Flags: review?(timeless)
Attachment #194113 - Flags: review?(timeless) → review+
Comment on attachment 194113 [details] [diff] [review]
patch v1

sr=dmose
Attachment #194113 - Flags: superreview?(dmose) → superreview+
Comment on attachment 194113 [details] [diff] [review]
patch v1

-  if (mIndex >= mCount) {
-    return NS_ERROR_UNEXPECTED;
-  }
+  NS_ENSURE_STATE(mIndex >= mCount);

Oops! This change is wrong..
Attached patch patch v2Splinter Review
Let's try that again, shall we..
Attachment #194113 - Attachment is obsolete: true
Attachment #194220 - Flags: superreview?(dmose)
Attachment #194220 - Flags: review?(timeless)
Comment on attachment 194220 [details] [diff] [review]
patch v2

sr=dmose
Attachment #194220 - Flags: superreview?(dmose) → superreview+
Attachment #194220 - Flags: review?(timeless) → review+
Checked in by timeless (2005-09-02 02:04).
Status: NEW → RESOLVED
Closed: 19 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: