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

Unified Diff: third_party/WebKit/Source/core/fileapi/File.h

Issue 2282413002: Replaced PassRefPtr copies with moves in Source/core. (Closed)
Patch Set: rebased Created 4 years, 3 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/core/fileapi/Blob.h ('k') | third_party/WebKit/Source/core/fileapi/File.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/fileapi/File.h
diff --git a/third_party/WebKit/Source/core/fileapi/File.h b/third_party/WebKit/Source/core/fileapi/File.h
index f9da21d5bf127f7a462eae1e7260737cd9e182b6..7589b583411ad54c712fd48a554fb6e52e47b724 100644
--- a/third_party/WebKit/Source/core/fileapi/File.h
+++ b/third_party/WebKit/Source/core/fileapi/File.h
@@ -65,17 +65,17 @@ public:
static File* create(const String& name, double modificationTime, PassRefPtr<BlobDataHandle> blobDataHandle)
{
- return new File(name, modificationTime, blobDataHandle);
+ return new File(name, modificationTime, std::move(blobDataHandle));
}
// For deserialization.
static File* createFromSerialization(const String& path, const String& name, const String& relativePath, UserVisibility userVisibility, bool hasSnapshotData, uint64_t size, double lastModified, PassRefPtr<BlobDataHandle> blobDataHandle)
{
- return new File(path, name, relativePath, userVisibility, hasSnapshotData, size, lastModified, blobDataHandle);
+ return new File(path, name, relativePath, userVisibility, hasSnapshotData, size, lastModified, std::move(blobDataHandle));
}
static File* createFromIndexedSerialization(const String& path, const String& name, uint64_t size, double lastModified, PassRefPtr<BlobDataHandle> blobDataHandle)
{
- return new File(path, name, String(), IsNotUserVisible, true, size, lastModified, blobDataHandle);
+ return new File(path, name, String(), IsNotUserVisible, true, size, lastModified, std::move(blobDataHandle));
}
static File* createWithRelativePath(const String& path, const String& relativePath);
« no previous file with comments | « third_party/WebKit/Source/core/fileapi/Blob.h ('k') | third_party/WebKit/Source/core/fileapi/File.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698