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

Unified Diff: third_party/WebKit/public/platform/WebVector.h

Issue 2799553002: Provide a std::vector compliant empty() method for WebVector. (Closed)
Patch Set: Created 3 years, 8 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/public/platform/WebMediaConstraints.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/WebVector.h
diff --git a/third_party/WebKit/public/platform/WebVector.h b/third_party/WebKit/public/platform/WebVector.h
index 533770c6953e4e12071b24a470657f8524c1d2a4..f3be46fd39adf827badec1dca5c76966e62c51ae 100644
--- a/third_party/WebKit/public/platform/WebVector.h
+++ b/third_party/WebKit/public/platform/WebVector.h
@@ -111,7 +111,9 @@ class WebVector {
}
size_t size() const { return m_data.size(); }
- bool isEmpty() const { return m_data.empty(); }
+ bool empty() const { return m_data.empty(); }
+ // TODO(slangley): Remove all uses of isEmpty.
+ bool isEmpty() const { return empty(); }
T& operator[](size_t i) {
DCHECK_LT(i, m_data.size());
« no previous file with comments | « third_party/WebKit/public/platform/WebMediaConstraints.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698