Closed Bug 1276550 Opened 8 years ago Closed 8 years ago

Support operator-> for RangedPtr

Categories

(Core :: MFBT, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla49
Tracking Status
firefox49 --- fixed

People

(Reporter: boris, Assigned: boris)

References

Details

Attachments

(1 file)

Bug 1244590 [1] wants to let mozilla::RangedPtr point to an element of nsTArray. If we want to access the member/method of RangedPtr<T>::mPtr, we have to use get() or operator* which makes the code not easy to be read/reviewed. Therefore, we want to add the new operator, operator->() in mozilla::RangedPtr.

[1] Bug 1244590 comment 91 and Bug 1244590 comment 94.
Depends on: 662001
Blocks: 1244590
No longer blocks: 1244590
Blocks: 1244590
Status: NEW → ASSIGNED
Comment on attachment 8757762 [details]
MozReview Request: Bug 1276550 - Support operator-> for RangedPtr.

https://reviewboard.mozilla.org/r/56184/#review54084
Attachment #8757762 - Flags: review?(jwalden+bmo) → review+
Pushed by bchiou@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/30a1d2e8e043
Support operator-> for RangedPtr. r=Waldo
Depends on: 1277740
No longer depends on: 1277740
https://hg.mozilla.org/mozilla-central/rev/30a1d2e8e043
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: