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

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

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
Index: third_party/WebKit/Source/core/fileapi/File.cpp
diff --git a/third_party/WebKit/Source/core/fileapi/File.cpp b/third_party/WebKit/Source/core/fileapi/File.cpp
index d85cc3dd93be5119903a15365ed3e0d8507cc7dd..e9e0e21ded3744bf0ab7fafb931b599dd7477c3a 100644
--- a/third_party/WebKit/Source/core/fileapi/File.cpp
+++ b/third_party/WebKit/Source/core/fileapi/File.cpp
@@ -146,7 +146,7 @@ File::File(const String& path, const String& name, ContentTypeLookupPolicy polic
}
File::File(const String& path, const String& name, const String& relativePath, UserVisibility userVisibility, bool hasSnapshotData, uint64_t size, double lastModified, PassRefPtr<BlobDataHandle> blobDataHandle)
- : Blob(blobDataHandle)
+ : Blob(std::move(blobDataHandle))
, m_hasBackingFile(!path.isEmpty() || !relativePath.isEmpty())
, m_userVisibility(userVisibility)
, m_path(path)
@@ -158,7 +158,7 @@ File::File(const String& path, const String& name, const String& relativePath, U
}
File::File(const String& name, double modificationTimeMS, PassRefPtr<BlobDataHandle> blobDataHandle)
- : Blob(blobDataHandle)
+ : Blob(std::move(blobDataHandle))
, m_hasBackingFile(false)
, m_userVisibility(File::IsNotUserVisible)
, m_name(name)
« no previous file with comments | « third_party/WebKit/Source/core/fileapi/File.h ('k') | third_party/WebKit/Source/core/fileapi/FileReaderLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698