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

Unified Diff: net/quic/chromium/quic_server_info.cc

Issue 2678333003: Use base::STLClearObject in QuicServerInfo (Closed)
Patch Set: Created 3 years, 10 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/chromium/quic_server_info.cc
diff --git a/net/quic/chromium/quic_server_info.cc b/net/quic/chromium/quic_server_info.cc
index 7259dbac10bdb10a66fe914435e6cb7d74c785e8..23f4cf8ab24eebc508f90ba84b3a5109ff1fc882 100644
--- a/net/quic/chromium/quic_server_info.cc
+++ b/net/quic/chromium/quic_server_info.cc
@@ -7,6 +7,7 @@
#include <limits>
#include "base/pickle.h"
+#include "base/stl_util.h"
using std::string;
@@ -23,12 +24,12 @@ QuicServerInfo::State::State() {}
QuicServerInfo::State::~State() {}
void QuicServerInfo::State::Clear() {
- server_config.clear();
- source_address_token.clear();
- cert_sct.clear();
- chlo_hash.clear();
- server_config_sig.clear();
- certs.clear();
+ base::STLClearObject(&server_config);
+ base::STLClearObject(&source_address_token);
+ base::STLClearObject(&cert_sct);
+ base::STLClearObject(&chlo_hash);
+ base::STLClearObject(&server_config_sig);
+ base::STLClearObject(&certs);
}
QuicServerInfo::QuicServerInfo(const QuicServerId& server_id)
« 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