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

Unified Diff: third_party/WebKit/Source/core/clipboard/DataObject.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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/CSSCustomPropertyDeclaration.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/clipboard/DataObject.cpp
diff --git a/third_party/WebKit/Source/core/clipboard/DataObject.cpp b/third_party/WebKit/Source/core/clipboard/DataObject.cpp
index a11dd33da5ee7e9a96cecc5e360f21e324d3033c..6c71a5d5bf491f1962cd11333b27267af64bb996 100644
--- a/third_party/WebKit/Source/core/clipboard/DataObject.cpp
+++ b/third_party/WebKit/Source/core/clipboard/DataObject.cpp
@@ -221,7 +221,7 @@ void DataObject::addFilename(const String& filename, const String& displayName)
void DataObject::addSharedBuffer(const String& name, PassRefPtr<SharedBuffer> buffer)
{
- internalAddFileItem(DataObjectItem::createFromSharedBuffer(name, buffer));
+ internalAddFileItem(DataObjectItem::createFromSharedBuffer(name, std::move(buffer)));
}
DataObject::DataObject()
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/CSSCustomPropertyDeclaration.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698