Closed Bug 996326 Opened 6 years ago Closed 6 years ago

Promote outparam of nsDeviceContext::CreateRenderingContext() to actual return value.

Categories

(Core :: Graphics, defect)

defect
Not set

Tracking

()

RESOLVED FIXED
mozilla31

People

(Reporter: dholbert, Assigned: dholbert)

References

Details

Attachments

(1 file)

nsDeviceContext::CreateRenderingContext() returns its result via an outparam. Its "actual" return value is always NS_OK.

It should just return its result directly (as an already_AddRefed), and do away with the nsresult.
Attached patch fix v1Splinter Review
Assignee: nobody → dholbert
Status: NEW → ASSIGNED
Attachment #8406510 - Flags: review?(roc)
Blocks: 996351
https://hg.mozilla.org/mozilla-central/rev/81ce5041d5d9
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla31
You need to log in before you can comment on or make changes to this bug.