Index: cc/scoped_ptr_deque.h |
diff --git a/cc/scoped_ptr_deque.h b/cc/scoped_ptr_deque.h |
index 33d94e10354dc289640809589103a5a0c3b1e93a..64f09a8a8ec11f2a6f66ea5f9df41017ef21296d 100644 |
--- a/cc/scoped_ptr_deque.h |
+++ b/cc/scoped_ptr_deque.h |
@@ -6,6 +6,7 @@ |
#define CC_SCOPED_PTR_DEQUE_H_ |
#include "base/basictypes.h" |
+#include "base/logging.h" |
#include "base/memory/scoped_ptr.h" |
#include "base/stl_util.h" |
#include <deque> |
@@ -31,7 +32,7 @@ class ScopedPtrDeque { |
} |
T* Peek(size_t index) const { |
- ASSERT(index < size()); |
+ DCHECK(index < size()); |
return data_[index]; |
} |
@@ -40,12 +41,12 @@ class ScopedPtrDeque { |
} |
T* first() const { |
- ASSERT(!isEmpty()); |
+ DCHECK(!isEmpty()); |
return Peek(0); |
} |
T* last() const { |
- ASSERT(!isEmpty()); |
+ DCHECK(!isEmpty()); |
return Peek(size() - 1); |
} |
@@ -74,7 +75,7 @@ class ScopedPtrDeque { |
} |
void insert(size_t index, scoped_ptr<T> item) { |
- ASSERT(index < size()); |
+ DCHECK(index < size()); |
data_.insert(data_.begin() + index, item.release()); |
} |