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

Unified Diff: net/quic/test_tools/quic_stream_peer.cc

Issue 2588043002: Pass value and use std::move instead of const reference for ack listeners. (Closed)
Patch Set: 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/test_tools/quic_stream_peer.h ('k') | net/quic/test_tools/quic_test_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/test_tools/quic_stream_peer.cc
diff --git a/net/quic/test_tools/quic_stream_peer.cc b/net/quic/test_tools/quic_stream_peer.cc
index bbea93a6c0d4e4ce33deb5648b75ef7e7c1d7139..8deea1b1292286a5a77db6119b98ddfc35b3efbb 100644
--- a/net/quic/test_tools/quic_stream_peer.cc
+++ b/net/quic/test_tools/quic_stream_peer.cc
@@ -88,8 +88,8 @@ void QuicStreamPeer::WriteOrBufferData(
QuicStream* stream,
StringPiece data,
bool fin,
- const scoped_refptr<QuicAckListenerInterface>& ack_notifier_delegate) {
- stream->WriteOrBufferData(data, fin, ack_notifier_delegate);
+ scoped_refptr<QuicAckListenerInterface> ack_notifier_delegate) {
+ stream->WriteOrBufferData(data, fin, std::move(ack_notifier_delegate));
}
// static
« no previous file with comments | « net/quic/test_tools/quic_stream_peer.h ('k') | net/quic/test_tools/quic_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698