Closed Bug 1732268 Opened 3 years ago Closed 3 years ago

Get rid of misleading null-checks in nsLineIterator initialization

Categories

(Core :: Layout: Block and Inline, defect)

defect

Tracking

()

RESOLVED FIXED
94 Branch
Tracking Status
firefox94 --- fixed

People

(Reporter: jfkthame, Assigned: jfkthame)

Details

Attachments

(1 file)

new is infallible by default, so the null-checks are redundant, and callers don't need to check for failure.

Assignee: nobody → jfkthame
Status: NEW → ASSIGNED
Attachment #9242649 - Attachment description: Bug 1732268 - Remove redundant failure-checks from nsLineIterator initialization, as it uses infallible allocation, so that nsBlockFrame::GetLineIterator is clearly infallible. r=#layout-reviewers → Bug 1732268 - Remove redundant failure-checks from nsLineIterator initialization, as it uses infallible allocation. r=#layout-reviewers
Pushed by jkew@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/132a81168ee1
Remove redundant failure-checks from nsLineIterator initialization, as it uses infallible allocation. r=dholbert
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 94 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: