diff options
Diffstat (limited to 'base/scoped_vector.h')
-rw-r--r-- | base/scoped_vector.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/base/scoped_vector.h b/base/scoped_vector.h index 80a46ca..0c7449d 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_ |