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

Unified Diff: third_party/WebKit/Source/wtf/LinkedHashSet.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
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 566ab0e840e1edb2517a86c0cb42799cd4737670..40f80f52cde82ca2da81758e036450528e82af5d 100644
--- a/third_party/WebKit/Source/wtf/LinkedHashSet.h
+++ b/third_party/WebKit/Source/wtf/LinkedHashSet.h
@@ -239,8 +239,8 @@ class LinkedHashSet {
const Value& front() const;
void removeFirst();
- Value& last();
- const Value& last() const;
+ Value& back();
+ const Value& back() const;
void removeLast();
iterator find(ValuePeekInType);
@@ -718,13 +718,13 @@ inline void LinkedHashSet<T, U, V, W>::removeFirst() {
}
template <typename T, typename U, typename V, typename W>
-inline T& LinkedHashSet<T, U, V, W>::last() {
+inline T& LinkedHashSet<T, U, V, W>::back() {
DCHECK(!isEmpty());
return lastNode()->m_value;
}
template <typename T, typename U, typename V, typename W>
-inline const T& LinkedHashSet<T, U, V, W>::last() const {
+inline const T& LinkedHashSet<T, U, V, W>::back() const {
DCHECK(!isEmpty());
return lastNode()->m_value;
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutMultiColumnFlowThread.cpp ('k') | third_party/WebKit/Source/wtf/ListHashSet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698