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

Unified Diff: net/dns/dns_session.cc

Issue 16434016: Rewrite scoped_ptr<T>(NULL) to use the default ctor in net/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | « net/disk_cache/simple/simple_index_file.cc ('k') | net/dns/dns_socket_pool.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/dns_session.cc
diff --git a/net/dns/dns_session.cc b/net/dns/dns_session.cc
index 2e6d0c957b597cac6d4118a257423e36c611a9ed..35772124cc513e1fc4649a59ea83efa48482b793 100644
--- a/net/dns/dns_session.cc
+++ b/net/dns/dns_session.cc
@@ -229,7 +229,8 @@ scoped_ptr<DnsSession::SocketLease> DnsSession::AllocateSocket(
scoped_ptr<DatagramClientSocket> socket;
socket = socket_pool_->AllocateSocket(server_index);
- if (!socket.get()) return scoped_ptr<SocketLease>(NULL);
+ if (!socket.get())
+ return scoped_ptr<SocketLease>();
socket->NetLog().BeginEvent(NetLog::TYPE_SOCKET_IN_USE,
source.ToEventParametersCallback());
« no previous file with comments | « net/disk_cache/simple/simple_index_file.cc ('k') | net/dns/dns_socket_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698