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

Unified Diff: net/dns/record_parsed.cc

Issue 1545233002: Convert Pass()→std::move() in //net (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/dns/mojo_host_type_converters.cc ('k') | net/dns/record_rdata.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/record_parsed.cc
diff --git a/net/dns/record_parsed.cc b/net/dns/record_parsed.cc
index a5fcf191041108a80889bc0133bdeeab7082432f..c5a72ef59dcf129718045a0e422c3e0c5aa676cb 100644
--- a/net/dns/record_parsed.cc
+++ b/net/dns/record_parsed.cc
@@ -4,6 +4,8 @@
#include "net/dns/record_parsed.h"
+#include <utility>
+
#include "base/logging.h"
#include "net/dns/dns_response.h"
#include "net/dns/record_rdata.h"
@@ -20,7 +22,7 @@ RecordParsed::RecordParsed(const std::string& name,
type_(type),
klass_(klass),
ttl_(ttl),
- rdata_(rdata.Pass()),
+ rdata_(std::move(rdata)),
time_created_(time_created) {}
RecordParsed::~RecordParsed() {
@@ -66,12 +68,9 @@ scoped_ptr<const RecordParsed> RecordParsed::CreateFrom(
if (!rdata.get())
return scoped_ptr<const RecordParsed>();
- return scoped_ptr<const RecordParsed>(new RecordParsed(record.name,
- record.type,
- record.klass,
- record.ttl,
- rdata.Pass(),
- time_created));
+ return scoped_ptr<const RecordParsed>(
+ new RecordParsed(record.name, record.type, record.klass, record.ttl,
+ std::move(rdata), time_created));
}
bool RecordParsed::IsEqual(const RecordParsed* other, bool is_mdns) const {
« no previous file with comments | « net/dns/mojo_host_type_converters.cc ('k') | net/dns/record_rdata.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698