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

Unified Diff: net/quic/core/crypto/quic_crypto_client_config.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 | « net/quic/chromium/crypto/channel_id_chromium.cc ('k') | net/quic/core/quic_crypto_client_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/crypto/quic_crypto_client_config.cc
diff --git a/net/quic/core/crypto/quic_crypto_client_config.cc b/net/quic/core/crypto/quic_crypto_client_config.cc
index a94cbf865ee6f884733e9365c402bc136bb91353..1fd4bd159b4896bd0ce5242e7a1719a70ddfe2d9 100644
--- a/net/quic/core/crypto/quic_crypto_client_config.cc
+++ b/net/quic/core/crypto/quic_crypto_client_config.cc
@@ -180,7 +180,7 @@ QuicCryptoClientConfig::CachedState::SetServerConfig(StringPiece server_config,
if (!matches_existing) {
server_config_ = server_config.as_string();
SetProofInvalid();
- scfg_.reset(new_scfg_storage.release());
+ scfg_ = std::move(new_scfg_storage);
}
return SERVER_CONFIG_VALID;
}
« no previous file with comments | « net/quic/chromium/crypto/channel_id_chromium.cc ('k') | net/quic/core/quic_crypto_client_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698