Closed Bug 1668539 Opened 4 years ago Closed 4 years ago

Do not prevent RVO with QM_TRY_RETURN

Categories

(Core :: Storage: Quota Manager, task)

task

Tracking

()

RESOLVED FIXED
83 Branch
Tracking Status
firefox83 --- fixed

People

(Reporter: sg, Assigned: sg)

Details

Attachments

(1 file)

The implementation of QM_TRY_RETURN (and QM-specific equivalents) can be simplified to contain a single return statement, thereby not preventing (N)RVO. Also, in some situations it allows to drop the explicit specification of return types of the enclosing function/lambda expression.

Pushed by sgiesecke@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/874a5f59d8be Do not prevent RVO with QM_TRY_RETURN. r=dom-workers-and-storage-reviewers,janv
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 83 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: