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

Unified Diff: third_party/WebKit/Source/platform/blob/BlobData.h

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/blob/BlobData.h
diff --git a/third_party/WebKit/Source/platform/blob/BlobData.h b/third_party/WebKit/Source/platform/blob/BlobData.h
index 4e6aa56e8e887dbd2e7bc8a3c41879400f0531fd..fe42093dfd2fa8dbd2ffd7b7192f20ba83ab456c 100644
--- a/third_party/WebKit/Source/platform/blob/BlobData.h
+++ b/third_party/WebKit/Source/platform/blob/BlobData.h
@@ -73,7 +73,7 @@ struct PLATFORM_EXPORT BlobDataItem {
// Constructor for String type (complete string).
explicit BlobDataItem(PassRefPtr<RawData> data)
: type(Data),
- data(data),
+ data(std::move(data)),
offset(0),
length(toEndOfFile),
expectedModificationTime(invalidFileTime()) {}
@@ -102,7 +102,7 @@ struct PLATFORM_EXPORT BlobDataItem {
long long offset,
long long length)
: type(Blob),
- blobDataHandle(blobDataHandle),
+ blobDataHandle(std::move(blobDataHandle)),
offset(offset),
length(length),
expectedModificationTime(invalidFileTime()) {}
@@ -138,7 +138,7 @@ struct PLATFORM_EXPORT BlobDataItem {
// Constructor for String type (partial string).
BlobDataItem(PassRefPtr<RawData> data, long long offset, long long length)
: type(Data),
- data(data),
+ data(std::move(data)),
offset(offset),
length(length),
expectedModificationTime(invalidFileTime()) {}

Powered by Google App Engine
This is Rietveld 408576698