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

Unified Diff: net/spdy/spdy_buffer_producer.cc

Issue 1545233002: Convert Pass()→std::move() in //net (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/spdy/spdy_buffer.cc ('k') | net/spdy/spdy_header_block.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_buffer_producer.cc
diff --git a/net/spdy/spdy_buffer_producer.cc b/net/spdy/spdy_buffer_producer.cc
index 3a9598c859f155eec01c6b927b41d9857e87d244..8f18d19f24fdf84fda9b2b7468814fda4648f488 100644
--- a/net/spdy/spdy_buffer_producer.cc
+++ b/net/spdy/spdy_buffer_producer.cc
@@ -4,6 +4,8 @@
#include "net/spdy/spdy_buffer_producer.h"
+#include <utility>
+
#include "base/logging.h"
#include "net/spdy/spdy_buffer.h"
#include "net/spdy/spdy_protocol.h"
@@ -15,13 +17,13 @@ SpdyBufferProducer::SpdyBufferProducer() {}
SpdyBufferProducer::~SpdyBufferProducer() {}
SimpleBufferProducer::SimpleBufferProducer(scoped_ptr<SpdyBuffer> buffer)
- : buffer_(buffer.Pass()) {}
+ : buffer_(std::move(buffer)) {}
SimpleBufferProducer::~SimpleBufferProducer() {}
scoped_ptr<SpdyBuffer> SimpleBufferProducer::ProduceBuffer() {
DCHECK(buffer_);
- return buffer_.Pass();
+ return std::move(buffer_);
}
} // namespace net
« no previous file with comments | « net/spdy/spdy_buffer.cc ('k') | net/spdy/spdy_header_block.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698