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

Unified Diff: base/scoped_vector.h

Issue 552004: Style cleanup in preparation for auto-linting base/. (Closed)
Patch Set: Created 10 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 | « base/scoped_nsdisable_screen_updates.h ('k') | base/sha2.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/scoped_vector.h
diff --git a/base/scoped_vector.h b/base/scoped_vector.h
index 80a46caae3ddec8c43f3c8d18efa2bf872eec727..0c7449d734bc47b57a2fe706650c19461ef07b0c 100644
--- a/base/scoped_vector.h
+++ b/base/scoped_vector.h
@@ -39,7 +39,10 @@ class ScopedVector {
std::vector<T*>& get() { return v; }
const std::vector<T*>& get() const { return v; }
void swap(ScopedVector<T>& other) { v.swap(other.v); }
- void release(std::vector<T*>* out) { out->swap(v); v.clear(); }
+ void release(std::vector<T*>* out) {
+ out->swap(v);
+ v.clear();
+ }
void reset() { STLDeleteElements(&v); }
@@ -49,4 +52,4 @@ class ScopedVector {
DISALLOW_COPY_AND_ASSIGN(ScopedVector);
};
-#endif // BASE_SCOPED_VECTOR_H_
+#endif // BASE_SCOPED_VECTOR_H_
« no previous file with comments | « base/scoped_nsdisable_screen_updates.h ('k') | base/sha2.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698