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

Unified Diff: net/cert/x509_util.cc

Issue 2503993002: Change unique_ptr::reset() for std::move (Closed)
Patch Set: Change unique_ptr::reset() for std::move Created 4 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 | « no previous file | net/disk_cache/simple/simple_entry_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/x509_util.cc
diff --git a/net/cert/x509_util.cc b/net/cert/x509_util.cc
index 35913c19d2b5cd1ba2e7eee46ddf9aa4e9844f0d..a5d583d0eb1bc82864b37b3be2530e9c4138efe9 100644
--- a/net/cert/x509_util.cc
+++ b/net/cert/x509_util.cc
@@ -112,7 +112,7 @@ bool CreateKeyAndSelfSignedCert(const std::string& subject,
not_valid_after,
der_cert);
if (success)
- key->reset(new_key.release());
+ *key = std::move(new_key);
return success;
}
« no previous file with comments | « no previous file | net/disk_cache/simple/simple_entry_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698