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

Unified Diff: mojo/public/cpp/bindings/wtf_array.h

Issue 2470233009: WTF/std normalization: replace WTF::Vector::first() with ::front() (Closed)
Patch Set: rebase Created 4 years, 1 month 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 | « no previous file | third_party/WebKit/Source/bindings/core/v8/TraceWrapperMemberTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/bindings/wtf_array.h
diff --git a/mojo/public/cpp/bindings/wtf_array.h b/mojo/public/cpp/bindings/wtf_array.h
index 46d9a6958bd658145761b1d7359993bc06cea57c..5964f2a4c9d985147a64b1e112d48d1b2fa13778 100644
--- a/mojo/public/cpp/bindings/wtf_array.h
+++ b/mojo/public/cpp/bindings/wtf_array.h
@@ -88,8 +88,8 @@ class WTFArray {
// Returns a reference to the first element of the array. Calling this on a
// null or empty array causes undefined behavior.
- const T& front() const { return vec_.first(); }
- T& front() { return vec_.first(); }
+ const T& front() const { return vec_.front(); }
+ T& front() { return vec_.front(); }
// Returns the size of the array, which will be zero if the array is null.
size_t size() const { return vec_.size(); }
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/core/v8/TraceWrapperMemberTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698