Closed
Bug 1272831
Opened 9 years ago
Closed 9 years ago
Add AutoRestore::Value() to retrieve the saved value
Categories
(Core :: XPCOM, defect)
Core
XPCOM
Tracking
()
RESOLVED
FIXED
mozilla49
Tracking | Status | |
---|---|---|
firefox49 | --- | fixed |
People
(Reporter: TYLin, Assigned: TYLin)
Details
Attachments
(1 file)
AutoRestore::Value() would help in uses cases like [1].
https://dxr.mozilla.org/mozilla-central/rev/1f1a8b96d5167153d1f750439ba6a1063155a4bc/layout/generic/nsBlockReflowState.cpp#721-723
Assignee | ||
Comment 1•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/52607/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/52607/
Attachment #8752428 -
Flags: review?(nfroyd)
Comment 2•9 years ago
|
||
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+
Assignee | ||
Comment 3•9 years ago
|
||
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.
Assignee | ||
Comment 4•9 years ago
|
||
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.
Comment 6•9 years ago
|
||
bugherder |
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.
Description
•