Closed Bug 208398 Opened 22 years ago Closed 21 years ago

Implement swap on nsRefPtr

Categories

(Core :: XPCOM, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla1.5alpha

People

(Reporter: peterv, Assigned: peterv)

Details

Attachments

(1 file)

I think we should have a swap on nsRefPtr too, like nsCOMPtr has.
Attached patch v1Splinter Review
Would it be this simple? Do we need nsRefPtr<T>::swap(nsCOMPtr<T>&) and vice versa?
Attachment #125040 - Flags: review?(dbaron)
Attachment #125040 - Flags: superreview?(dbaron)
Attachment #125040 - Flags: review?(dbaron)
Attachment #125040 - Flags: review+
hmm.. i guess a swaps nsRefPtr<->nsCOMPtr would be good to have, I can't think of any harm that could do.
Attachment #125040 - Flags: superreview?(dbaron) → superreview+
Taking.
Assignee: dbaron → peterv
Status: NEW → ASSIGNED
Priority: -- → P3
Target Milestone: --- → mozilla1.5alpha
fixed on Jun 10, 2003 per bonsai
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: