summaryrefslogtreecommitdiffstats
path: root/base/memory/scoped_generic_obj.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/memory/scoped_generic_obj.h')
-rw-r--r--base/memory/scoped_generic_obj.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/base/memory/scoped_generic_obj.h b/base/memory/scoped_generic_obj.h
index f266bb8..b4f28cf 100644
--- a/base/memory/scoped_generic_obj.h
+++ b/base/memory/scoped_generic_obj.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -41,7 +41,7 @@ class ScopedGenericObj {
// There is no way to create an uninitialized ScopedGenericObj.
// The input parameter must be allocated with an allocator that matches the
// Free functor.
- explicit ScopedGenericObj(C p = NULL): obj_(p) {}
+ explicit ScopedGenericObj(C p = C()): obj_(p) {}
// Destructor. If there is a C object, call the Free functor.
~ScopedGenericObj() {
@@ -51,7 +51,7 @@ class ScopedGenericObj {
// Reset. Calls the Free functor on the current owned object, if any.
// Then takes ownership of a new object, if given.
// this->reset(this->get()) works.
- void reset(C p = NULL) {
+ void reset(C p = C()) {
if (obj_ != p) {
FreeProc free_proc;
free_proc(obj_);