Closed Bug 1272831 Opened 9 years ago Closed 9 years ago

Add AutoRestore::Value() to retrieve the saved value

Categories

(Core :: XPCOM, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla49
Tracking Status
firefox49 --- fixed

People

(Reporter: TYLin, Assigned: TYLin)

Details

Attachments

(1 file)

Comment on attachment 8752428 [details] MozReview Request: Bug 1272831 - Add AutoRestore::SavedValue() to retrieve the saved value. https://reviewboard.mozilla.org/r/52607/#review50330 r=me with changes below. ::: xpcom/glue/AutoRestore.h:47 (Diff revision 1) > } > ~AutoRestore() > { > mLocation = mValue; > } > + T Value() const This is fine, but I think we should call it SavedValue, to avoid ambiguity about whether we're reading from the location that we're going to restore or the value that we're going to restore.
Attachment #8752428 - Flags: review?(nfroyd) → review+
Comment on attachment 8752428 [details] MozReview Request: Bug 1272831 - Add AutoRestore::SavedValue() to retrieve the saved value. Review request updated; see interdiff: https://reviewboard.mozilla.org/r/52607/diff/1-2/
Attachment #8752428 - Attachment description: MozReview Request: Bug 1272831 - Add AutoRestore::Value() to retrieve the saved value. → MozReview Request: Bug 1272831 - Add AutoRestore::SavedValue() to retrieve the saved value.
https://reviewboard.mozilla.org/r/52607/#review50330 > This is fine, but I think we should call it SavedValue, to avoid ambiguity about whether we're reading from the location that we're going to restore or the value that we're going to restore. Changed the name to SavedValue() in patchset 2.
Status: NEW → RESOLVED
Closed: 9 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: