DescriptionFix ListHashSet::AddResult storing a Node* instead of a ValueType*.
ListHashSet::add() and similar used to return an AddResult value
containing a pointer to ListHashSetNode, instead of an actual value
specified by the user. This is unintuitive, and the users are forced to
append "->m_value" to obtain a pointer to the object they've really
added.
This patch fixes this issue, and giving what the users usually expect.
Interestingly, no production code (outside of tests) made use of
storedValue. LinkedHashSet did not have this issue.
BUG=582349
Committed: https://crrev.com/981a814af98d73032d8f95b174903e34b9720521
Cr-Commit-Position: refs/heads/master@{#381680}
Patch Set 1 #
Dependent Patchsets: Messages
Total messages: 16 (8 generated)
|