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

Unified Diff: third_party/WebKit/Source/platform/SharedBufferChunkReader.cpp

Issue 2761693002: Wrapped PassRefPtrs in move where passed to RefPtr constructor. (Closed)
Patch Set: Added move wraps for multiple instances in 1 line. Created 3 years, 9 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: third_party/WebKit/Source/platform/SharedBufferChunkReader.cpp
diff --git a/third_party/WebKit/Source/platform/SharedBufferChunkReader.cpp b/third_party/WebKit/Source/platform/SharedBufferChunkReader.cpp
index 6e2457071d0f6676fc1e9f475a0e7c98fdcaaa7d..38817a2cdccc1f028a03bb1d9139e607edfa0760 100644
--- a/third_party/WebKit/Source/platform/SharedBufferChunkReader.cpp
+++ b/third_party/WebKit/Source/platform/SharedBufferChunkReader.cpp
@@ -37,7 +37,7 @@ namespace blink {
SharedBufferChunkReader::SharedBufferChunkReader(
PassRefPtr<const SharedBuffer> buffer,
const Vector<char>& separator)
- : m_buffer(buffer),
+ : m_buffer(std::move(buffer)),
m_bufferPosition(0),
m_segment(0),
m_segmentLength(0),
@@ -49,7 +49,7 @@ SharedBufferChunkReader::SharedBufferChunkReader(
SharedBufferChunkReader::SharedBufferChunkReader(
PassRefPtr<const SharedBuffer> buffer,
const char* separator)
- : m_buffer(buffer),
+ : m_buffer(std::move(buffer)),
m_bufferPosition(0),
m_segment(0),
m_segmentLength(0),
« no previous file with comments | « third_party/WebKit/Source/platform/SerializedResource.h ('k') | third_party/WebKit/Source/platform/blob/BlobData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698