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

Unified Diff: net/spdy/spdy_buffer.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/socket/websocket_transport_connect_sub_job.h ('k') | net/spdy/spdy_buffer_producer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_buffer.cc
diff --git a/net/spdy/spdy_buffer.cc b/net/spdy/spdy_buffer.cc
index 4482f99b938d72cf5cea06590840d14f71c5d459..fad3305d89493a5744498f29ce030e87eb981185 100644
--- a/net/spdy/spdy_buffer.cc
+++ b/net/spdy/spdy_buffer.cc
@@ -5,6 +5,7 @@
#include "net/spdy/spdy_buffer.h"
#include <cstring>
+#include <utility>
#include "base/callback.h"
#include "base/logging.h"
@@ -29,7 +30,7 @@ scoped_ptr<SpdyFrame> MakeSpdyFrame(const char* data, size_t size) {
std::memcpy(frame_data.get(), data, size);
scoped_ptr<SpdyFrame> frame(
new SpdyFrame(frame_data.release(), size, true /* owns_buffer */));
- return frame.Pass();
+ return frame;
}
} // namespace
@@ -58,7 +59,7 @@ class SpdyBuffer::SharedFrameIOBuffer : public IOBuffer {
SpdyBuffer::SpdyBuffer(scoped_ptr<SpdyFrame> frame)
: shared_frame_(new SharedFrame()),
offset_(0) {
- shared_frame_->data = frame.Pass();
+ shared_frame_->data = std::move(frame);
}
// The given data may not be strictly a SPDY frame; we (ab)use
« no previous file with comments | « net/socket/websocket_transport_connect_sub_job.h ('k') | net/spdy/spdy_buffer_producer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698