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

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

Issue 2722413005: Migrate WTF::LinkedHashSet/ListHashSet::first() to ::front() (Closed)
Patch Set: Created 3 years, 10 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 ad1ed1ebaa5b2536257faeb43ff91813e4edede8..0e4333ccec3841ed660c8b90050e9e5bdf248149 100644
--- a/third_party/WebKit/Source/wtf/ListHashSet.h
+++ b/third_party/WebKit/Source/wtf/ListHashSet.h
@@ -163,8 +163,8 @@ class ListHashSet
}
const_reverse_iterator rend() const { return makeConstReverseIterator(0); }
- ValueType& first();
- const ValueType& first() const;
+ ValueType& front();
+ const ValueType& front() const;
void removeFirst();
ValueType& last();
@@ -809,7 +809,7 @@ inline void ListHashSet<T, inlineCapacity, U, V>::finalize() {
}
template <typename T, size_t inlineCapacity, typename U, typename V>
-inline T& ListHashSet<T, inlineCapacity, U, V>::first() {
+inline T& ListHashSet<T, inlineCapacity, U, V>::front() {
DCHECK(!isEmpty());
return m_head->m_value;
}
@@ -822,7 +822,7 @@ inline void ListHashSet<T, inlineCapacity, U, V>::removeFirst() {
}
template <typename T, size_t inlineCapacity, typename U, typename V>
-inline const T& ListHashSet<T, inlineCapacity, U, V>::first() const {
+inline const T& ListHashSet<T, inlineCapacity, U, V>::front() const {
DCHECK(!isEmpty());
return m_head->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