Closed Bug 967023 Opened 10 years ago Closed 10 years ago

nsXPCWrappedJSClass::GetNewOrUsed doesn't need to use an out param

Categories

(Core :: XPConnect, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla30

People

(Reporter: mccr8, Assigned: mccr8)

Details

Attachments

(2 files)

It always returns NS_OK, so it could just return the value directly.  All callers null-check the out param result.

Ms2ger pointed this out.
Assignee: nobody → continuation
Attachment #8374324 - Flags: review?(bobbyholley) → review+
Attachment #8374325 - Flags: review?(bobbyholley) → review+
https://hg.mozilla.org/mozilla-central/rev/08efbd3dd17f
https://hg.mozilla.org/mozilla-central/rev/3223d3bfdcd0
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: