Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(922)

Unified Diff: content/common/cc_messages.cc

Issue 16703020: Rewrite scoped_ptr<T>(NULL) to use the default ctor in content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Clean up insanity Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/speech/google_streaming_remote_engine.cc ('k') | content/common/gpu/gpu_channel_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/cc_messages.cc
diff --git a/content/common/cc_messages.cc b/content/common/cc_messages.cc
index 43b6ce18bedf3130dcdf090359dfd7927b0a8ad2..79832169ed13784af6e0abdf663c159a6aed22f1 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>();
}
« no previous file with comments | « content/browser/speech/google_streaming_remote_engine.cc ('k') | content/common/gpu/gpu_channel_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698