summaryrefslogtreecommitdiffstats
path: root/content/common/cc_messages.cc
diff options
context:
space:
mode:
authordcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-13 13:42:30 +0000
committerdcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-13 13:42:30 +0000
commit47f236d396ead60f96491515befa1b9e52f5aaa6 (patch)
tree55910c9a7bd90b44fe8e91008bcafa8c253c7f83 /content/common/cc_messages.cc
parent3eb0ecc703f85a3748db3b85bae79c5ee474440f (diff)
downloadchromium_src-47f236d396ead60f96491515befa1b9e52f5aaa6.zip
chromium_src-47f236d396ead60f96491515befa1b9e52f5aaa6.tar.gz
chromium_src-47f236d396ead60f96491515befa1b9e52f5aaa6.tar.bz2
Rewrite scoped_ptr<T>(NULL) to use the default ctor in content/.
This is the result of running the rewrite_scoped_ptr_ctor_null tool across all files built on Linux in the content/ directory. BUG=173286 Review URL: https://chromiumcodereview.appspot.com/16703020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206062 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common/cc_messages.cc')
-rw-r--r--content/common/cc_messages.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/common/cc_messages.cc b/content/common/cc_messages.cc
index 43b6ce1..7983216 100644
--- a/content/common/cc_messages.cc
+++ b/content/common/cc_messages.cc
@@ -379,7 +379,7 @@ static scoped_ptr<cc::DrawQuad> ReadDrawQuad(const Message* m,
PickleIterator* iter) {
scoped_ptr<QuadType> quad = QuadType::Create();
if (!ReadParam(m, iter, quad.get()))
- return scoped_ptr<QuadType>(NULL).template PassAs<cc::DrawQuad>();
+ return scoped_ptr<QuadType>().template PassAs<cc::DrawQuad>();
return quad.template PassAs<cc::DrawQuad>();
}