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

Unified Diff: net/quic/quic_stream_sequencer.cc

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/quic_stream_sequencer.cc
diff --git a/net/quic/quic_stream_sequencer.cc b/net/quic/quic_stream_sequencer.cc
index acddefd39ee95f6997eb93998842947a0080b917..bd1bc6e40032335efa87d084428c4aedd87f26fa 100644
--- a/net/quic/quic_stream_sequencer.cc
+++ b/net/quic/quic_stream_sequencer.cc
@@ -18,7 +18,7 @@ using std::string;
namespace net {
QuicStreamSequencer::FrameData::FrameData(QuicStreamOffset offset,
- string segment)
+ const string& segment)
: offset(offset), segment(segment) {}
QuicStreamSequencer::QuicStreamSequencer(ReliableQuicStream* quic_stream)

Powered by Google App Engine
This is Rietveld 408576698