Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(900)

Unified Diff: third_party/WebKit/Source/wtf/ListHashSet.h

Issue 2725343002: Migrate WTF::LinkedHashSet/ListHashSet::last() to ::back() (Closed)
Patch Set: rebase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/wtf/LinkedHashSet.h ('k') | third_party/WebKit/Source/wtf/ListHashSetTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/ListHashSet.h
diff --git a/third_party/WebKit/Source/wtf/ListHashSet.h b/third_party/WebKit/Source/wtf/ListHashSet.h
index 0e4333ccec3841ed660c8b90050e9e5bdf248149..ecefd881222779a9b804506ea42101a007d2ad47 100644
--- a/third_party/WebKit/Source/wtf/ListHashSet.h
+++ b/third_party/WebKit/Source/wtf/ListHashSet.h
@@ -167,8 +167,8 @@ class ListHashSet
const ValueType& front() const;
void removeFirst();
- ValueType& last();
- const ValueType& last() const;
+ ValueType& back();
+ const ValueType& back() const;
void removeLast();
iterator find(ValuePeekInType);
@@ -828,13 +828,13 @@ inline const T& ListHashSet<T, inlineCapacity, U, V>::front() const {
}
template <typename T, size_t inlineCapacity, typename U, typename V>
-inline T& ListHashSet<T, inlineCapacity, U, V>::last() {
+inline T& ListHashSet<T, inlineCapacity, U, V>::back() {
DCHECK(!isEmpty());
return m_tail->m_value;
}
template <typename T, size_t inlineCapacity, typename U, typename V>
-inline const T& ListHashSet<T, inlineCapacity, U, V>::last() const {
+inline const T& ListHashSet<T, inlineCapacity, U, V>::back() const {
DCHECK(!isEmpty());
return m_tail->m_value;
}
« no previous file with comments | « third_party/WebKit/Source/wtf/LinkedHashSet.h ('k') | third_party/WebKit/Source/wtf/ListHashSetTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698