Chromium Code Reviews| Index: net/dns/dns_query.cc |
| diff --git a/net/dns/dns_query.cc b/net/dns/dns_query.cc |
| index 530508a61de1b3f051e5f7139aeef16ca3cce0bd..3a1ebca916adfcbd96ae8def71b3329a05e7c9d6 100644 |
| --- a/net/dns/dns_query.cc |
| +++ b/net/dns/dns_query.cc |
| @@ -43,8 +43,8 @@ DnsQuery::DnsQuery(uint16 id, const base::StringPiece& qname, uint16 qtype) |
| DnsQuery::~DnsQuery() { |
| } |
| -DnsQuery* DnsQuery::CloneWithNewId(uint16 id) const { |
| - return new DnsQuery(*this, id); |
| +scoped_ptr<DnsQuery> DnsQuery::CloneWithNewId(uint16 id) const { |
| + return scoped_ptr<DnsQuery>(new DnsQuery(*this, id)); |
|
eroman
2015/09/18 17:39:56
make_scoped_ptr(new DnsQuery(*this, id));
Paritosh Kumar
2015/09/21 09:38:43
Thanks. Done.
|
| } |
| uint16 DnsQuery::id() const { |