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

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

Issue 1611343002: wtf reformat test Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pydent Created 4 years, 11 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/RefPtrTest.cpp ('k') | third_party/WebKit/Source/wtf/RetainPtr.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/RefVector.h
diff --git a/third_party/WebKit/Source/wtf/RefVector.h b/third_party/WebKit/Source/wtf/RefVector.h
index 0571fc7acf408c5a7f20a9bb001b018a932987a4..5f6c15b9a1b94ca363551fe102792b0101d87f7d 100644
--- a/third_party/WebKit/Source/wtf/RefVector.h
+++ b/third_party/WebKit/Source/wtf/RefVector.h
@@ -13,29 +13,29 @@ namespace blink {
template <typename T>
class RefVector : public RefCounted<RefVector<T>> {
-public:
- static PassRefPtr<RefVector> create() { return adoptRef(new RefVector<T>); }
- PassRefPtr<RefVector> copy() { return adoptRef(new RefVector<T>(*this)); }
-
- const T& operator[](size_t i) const { return m_vector[i]; }
- T& operator[](size_t i) { return m_vector[i]; }
- const T& at(size_t i) const { return m_vector.at(i); }
- T& at(size_t i) { return m_vector.at(i); }
-
- bool operator==(const RefVector& o) const { return m_vector == o.m_vector; }
- bool operator!=(const RefVector& o) const { return m_vector != o.m_vector; }
-
- size_t size() const { return m_vector.size(); }
- bool isEmpty() const { return !size(); }
- void append(const T& decoration) { m_vector.append(decoration); }
- const Vector<T>& vector() const { return m_vector; }
-
-private:
- Vector<T> m_vector;
- RefVector() { }
- RefVector(const RefVector& o) : m_vector(o.m_vector) { }
+ public:
+ static PassRefPtr<RefVector> create() { return adoptRef(new RefVector<T>); }
+ PassRefPtr<RefVector> copy() { return adoptRef(new RefVector<T>(*this)); }
+
+ const T& operator[](size_t i) const { return m_vector[i]; }
+ T& operator[](size_t i) { return m_vector[i]; }
+ const T& at(size_t i) const { return m_vector.at(i); }
+ T& at(size_t i) { return m_vector.at(i); }
+
+ bool operator==(const RefVector& o) const { return m_vector == o.m_vector; }
+ bool operator!=(const RefVector& o) const { return m_vector != o.m_vector; }
+
+ size_t size() const { return m_vector.size(); }
+ bool isEmpty() const { return !size(); }
+ void append(const T& decoration) { m_vector.append(decoration); }
+ const Vector<T>& vector() const { return m_vector; }
+
+ private:
+ Vector<T> m_vector;
+ RefVector() {}
+ RefVector(const RefVector& o) : m_vector(o.m_vector) {}
};
-} // namespace blink
+} // namespace blink
-#endif // RefVector_h
+#endif // RefVector_h
« no previous file with comments | « third_party/WebKit/Source/wtf/RefPtrTest.cpp ('k') | third_party/WebKit/Source/wtf/RetainPtr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698