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

Unified Diff: net/quic/core/crypto/quic_crypto_client_config.cc

Issue 2815733002: Adding using declarations for std::swap. (Closed)
Patch Set: Created 3 years, 8 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 | « no previous file | no next file » | 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 aafb36412c72a6005c9a1b9194899a187c1b8b98..d70f79aa5cc9969f86a456dc5f5fdb896d8bacd7 100644
--- a/net/quic/core/crypto/quic_crypto_client_config.cc
+++ b/net/quic/core/crypto/quic_crypto_client_config.cc
@@ -193,6 +193,7 @@ void QuicCryptoClientConfig::CachedState::InvalidateServerConfig() {
scfg_.reset();
SetProofInvalid();
std::queue<QuicConnectionId> empty_queue;
+ using std::swap;
swap(server_designated_connection_ids_, empty_queue);
}
@@ -237,6 +238,7 @@ void QuicCryptoClientConfig::CachedState::Clear() {
scfg_.reset();
++generation_counter_;
std::queue<QuicConnectionId> empty_queue;
+ using std::swap;
swap(server_designated_connection_ids_, empty_queue);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698