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

Unified Diff: third_party/WebKit/Source/platform/image-decoders/FastSharedBufferReaderTest.cpp

Issue 2432883002: Replaced PassRefPtr copies with moves in unit tests. (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « third_party/WebKit/Source/platform/fonts/GlyphPageTreeNodeTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/image-decoders/FastSharedBufferReaderTest.cpp
diff --git a/third_party/WebKit/Source/platform/image-decoders/FastSharedBufferReaderTest.cpp b/third_party/WebKit/Source/platform/image-decoders/FastSharedBufferReaderTest.cpp
index 2fe64aed57cef147122faa43c465ae19784c2f28..0dde86d08ba1f27f16deb59ee977da27f2c6e8f4 100644
--- a/third_party/WebKit/Source/platform/image-decoders/FastSharedBufferReaderTest.cpp
+++ b/third_party/WebKit/Source/platform/image-decoders/FastSharedBufferReaderTest.cpp
@@ -66,7 +66,7 @@ struct SegmentReaders {
RefPtr<SegmentReader> segmentReaders[3];
SegmentReaders(PassRefPtr<SharedBuffer> input) {
- segmentReaders[0] = SegmentReader::createFromSharedBuffer(input);
+ segmentReaders[0] = SegmentReader::createFromSharedBuffer(std::move(input));
segmentReaders[1] = copyToROBufferSegmentReader(segmentReaders[0]);
segmentReaders[2] = copyToDataSegmentReader(segmentReaders[0]);
}
« no previous file with comments | « third_party/WebKit/Source/platform/fonts/GlyphPageTreeNodeTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698