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

Unified Diff: net/quic/platform/api/quic_socket_address.cc

Issue 2874333002: Construct QuicSocketAddressImpl in QuicChromiumPacketReadder and pass it by const&. (Closed)
Patch Set: Created 3 years, 7 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 | « net/quic/platform/api/quic_socket_address.h ('k') | net/tools/quic/quic_simple_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/platform/api/quic_socket_address.cc
diff --git a/net/quic/platform/api/quic_socket_address.cc b/net/quic/platform/api/quic_socket_address.cc
index 43ffa343e74276cb99534f5c64947e7cb9702144..fb08034fb38a119c95212235003f5701bbbf4cca 100644
--- a/net/quic/platform/api/quic_socket_address.cc
+++ b/net/quic/platform/api/quic_socket_address.cc
@@ -20,11 +20,11 @@ QuicSocketAddress::QuicSocketAddress(const struct sockaddr& saddr)
QuicSocketAddress::QuicSocketAddress(const QuicSocketAddressImpl& impl)
: impl_(impl) {}
-bool operator==(QuicSocketAddress lhs, QuicSocketAddress rhs) {
+bool operator==(const QuicSocketAddress& lhs, const QuicSocketAddress& rhs) {
return lhs.impl_ == rhs.impl_;
}
-bool operator!=(QuicSocketAddress lhs, QuicSocketAddress rhs) {
+bool operator!=(const QuicSocketAddress& lhs, const QuicSocketAddress& rhs) {
return lhs.impl_ != rhs.impl_;
}
« no previous file with comments | « net/quic/platform/api/quic_socket_address.h ('k') | net/tools/quic/quic_simple_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698