Fix 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 Review URL: https://codereview.chromium.org/1813693002 Cr-Commit-Position: refs/heads/master@{#381680}
Showing
Please register or sign in to comment