diff options
author | thomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-16 18:02:23 +0000 |
---|---|---|
committer | thomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-16 18:02:23 +0000 |
commit | acfe6250c6d6484e08201239494d99c713a97576 (patch) | |
tree | 255e601960ee08f8fc2b8ac772aaaf5b4dc38d5d /base | |
parent | 629cc398a25a3a51c31699b8e0e684ca57e9bb1d (diff) | |
download | chromium_src-acfe6250c6d6484e08201239494d99c713a97576.zip chromium_src-acfe6250c6d6484e08201239494d99c713a97576.tar.gz chromium_src-acfe6250c6d6484e08201239494d99c713a97576.tar.bz2 |
Switch to ptrdiff_t instead of std::ptrdiff_t since we seem to use raw ptrdiff_t in other places.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/5085001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66293 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/scoped_ptr.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/base/scoped_ptr.h b/base/scoped_ptr.h index 88ee41b..0a90150a 100644 --- a/base/scoped_ptr.h +++ b/base/scoped_ptr.h @@ -42,8 +42,8 @@ // scoped_array, scoped_ptr_malloc. #include <assert.h> +#include <stddef.h> #include <stdlib.h> -#include <cstddef> #include "base/compiler_specific.h" @@ -193,7 +193,7 @@ class scoped_array { // Get one element of the current object. // Will assert() if there is no current object, or index i is negative. - C& operator[](std::ptrdiff_t i) const { + C& operator[](ptrdiff_t i) const { assert(i >= 0); assert(array_ != NULL); return array_[i]; |