summaryrefslogtreecommitdiffstats
path: root/cc/base/scoped_ptr_vector.h
diff options
context:
space:
mode:
authordcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-12 16:23:58 +0000
committerdcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-12 16:23:58 +0000
commit547710bf35dba8f15ab269e2da2199e992708f03 (patch)
tree10c023f2d2d0684e572f51b25c05016b66f1a097 /cc/base/scoped_ptr_vector.h
parent85b863043edd48cbcb198675959d4c78da79592e (diff)
downloadchromium_src-547710bf35dba8f15ab269e2da2199e992708f03.zip
chromium_src-547710bf35dba8f15ab269e2da2199e992708f03.tar.gz
chromium_src-547710bf35dba8f15ab269e2da2199e992708f03.tar.bz2
Rewrite scoped_ptr<T>(NULL) to use the default ctor in cc/.
This is the result of running the rewrite_scoped_ptr_ctor_null tool across all files built on Linux in the cc/ directory. BUG=173286 Review URL: https://chromiumcodereview.appspot.com/16355009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205810 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/base/scoped_ptr_vector.h')
-rw-r--r--cc/base/scoped_ptr_vector.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/base/scoped_ptr_vector.h b/cc/base/scoped_ptr_vector.h
index 8cd368d..856e2f5 100644
--- a/cc/base/scoped_ptr_vector.h
+++ b/cc/base/scoped_ptr_vector.h
@@ -72,7 +72,7 @@ class ScopedPtrVector {
scoped_ptr<T> take(iterator position) {
if (position == end())
- return scoped_ptr<T>(NULL);
+ return scoped_ptr<T>();
DCHECK(position < end());
typename std::vector<T*>::iterator writable_position = position;