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

Unified Diff: net/quic/crypto/crypto_server_config_protobuf.h

Issue 1349783006: Cleanup: Pass std::string as const reference if possible (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert third_party changes Created 5 years, 3 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
Index: net/quic/crypto/crypto_server_config_protobuf.h
diff --git a/net/quic/crypto/crypto_server_config_protobuf.h b/net/quic/crypto/crypto_server_config_protobuf.h
index 57ebfb048478efc4b2bf2ab63ae30003c2a2f767..fca5f0a51b8bf26658821a4ad8d26a434acca00a 100644
--- a/net/quic/crypto/crypto_server_config_protobuf.h
+++ b/net/quic/crypto/crypto_server_config_protobuf.h
@@ -35,9 +35,7 @@ class NET_EXPORT_PRIVATE QuicServerConfigProtobuf {
std::string private_key() const {
return private_key_;
}
- void set_private_key(std::string key) {
- private_key_ = key;
- }
+ void set_private_key(const std::string& key) { private_key_ = key; }
private:
QuicTag tag_;
« no previous file with comments | « net/http/http_cache_unittest.cc ('k') | net/quic/quic_stream_sequencer.h » ('j') | url/gurl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698