Closed Bug 1978642 Opened 14 days ago Closed 14 days ago

Text-Fragments: Refactor returning result types with brace initialization

Categories

(Core :: DOM: Selection, task)

task

Tracking

()

RESOLVED FIXED
143 Branch
Tracking Status
firefox143 --- fixed

People

(Reporter: jjaschke, Assigned: jjaschke)

Details

Attachments

(1 file)

Previously, returning a Result in the TextDirectiveCreator classes for which the type is not exactly what was expected (e.g. returning nullptr in a function that returnsResult<RefPtr<Foo>, ErrorResult>), the full type was used (ie., return Result<RefPtr<Foo>,ErrorResult>(nullptr);).
This can be replaced with return {nullptr};.

Assignee: nobody → jjaschke
Status: NEW → ASSIGNED
Pushed by jjaschke@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/0d26658d5d72 https://hg.mozilla.org/integration/autoland/rev/caf88ffbc238 Text Fragments: Use brace initialization when returning a result with a different type. r=avandolder
Status: ASSIGNED → RESOLVED
Closed: 14 days ago
Resolution: --- → FIXED
Target Milestone: --- → 143 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: