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

Unified Diff: third_party/WebKit/Source/wtf/LinkedHashSet.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
Index: third_party/WebKit/Source/wtf/LinkedHashSet.h
diff --git a/third_party/WebKit/Source/wtf/LinkedHashSet.h b/third_party/WebKit/Source/wtf/LinkedHashSet.h
index 1a380b432e5fea800cbbbd8c533d40918261208a..566ab0e840e1edb2517a86c0cb42799cd4737670 100644
--- a/third_party/WebKit/Source/wtf/LinkedHashSet.h
+++ b/third_party/WebKit/Source/wtf/LinkedHashSet.h
@@ -235,8 +235,8 @@ class LinkedHashSet {
return makeConstReverseIterator(anchor());
}
- Value& first();
- const Value& first() const;
+ Value& front();
+ const Value& front() const;
void removeFirst();
Value& last();
@@ -700,13 +700,13 @@ inline LinkedHashSet<T, U, V, Allocator>::~LinkedHashSet() {
}
template <typename T, typename U, typename V, typename W>
-inline T& LinkedHashSet<T, U, V, W>::first() {
+inline T& LinkedHashSet<T, U, V, W>::front() {
DCHECK(!isEmpty());
return firstNode()->m_value;
}
template <typename T, typename U, typename V, typename W>
-inline const T& LinkedHashSet<T, U, V, W>::first() const {
+inline const T& LinkedHashSet<T, U, V, W>::front() const {
DCHECK(!isEmpty());
return firstNode()->m_value;
}
« no previous file with comments | « third_party/WebKit/Source/web/WebPluginContainerImpl.cpp ('k') | third_party/WebKit/Source/wtf/ListHashSet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698