diff options
Diffstat (limited to 'base/memory')
-rw-r--r-- | base/memory/scoped_vector.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/base/memory/scoped_vector.h b/base/memory/scoped_vector.h index 90a1f7d..59144c0 100644 --- a/base/memory/scoped_vector.h +++ b/base/memory/scoped_vector.h @@ -41,8 +41,8 @@ class ScopedVector { return *this; } - T*& operator[](size_t index) { return v_[index]; } - const T* operator[](size_t index) const { return v_[index]; } + reference operator[](size_t index) { return v_[index]; } + const_reference operator[](size_t index) const { return v_[index]; } bool empty() const { return v_.empty(); } size_t size() const { return v_.size(); } |