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

Unified Diff: third_party/WebKit/Source/core/dom/DOMTypedArray.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
Index: third_party/WebKit/Source/core/dom/DOMTypedArray.h
diff --git a/third_party/WebKit/Source/core/dom/DOMTypedArray.h b/third_party/WebKit/Source/core/dom/DOMTypedArray.h
index 5c32f9fb8996ad04fe240ed76e31985f92959b3c..8350c988e5e3d0d47ef2476bcc133f69f95f9484 100644
--- a/third_party/WebKit/Source/core/dom/DOMTypedArray.h
+++ b/third_party/WebKit/Source/core/dom/DOMTypedArray.h
@@ -31,7 +31,7 @@ public:
static ThisType* create(PassRefPtr<WTFTypedArray> bufferView)
{
- return new ThisType(bufferView);
+ return new ThisType(std::move(bufferView));
}
static ThisType* create(unsigned length)
{
@@ -43,7 +43,7 @@ public:
}
static ThisType* create(PassRefPtr<WTF::ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
{
- return create(WTFTypedArray::create(buffer, byteOffset, length));
+ return create(WTFTypedArray::create(std::move(buffer), byteOffset, length));
}
static ThisType* create(DOMArrayBufferBase *buffer, unsigned byteOffset, unsigned length)
{
« no previous file with comments | « third_party/WebKit/Source/core/dom/DOMSharedArrayBuffer.h ('k') | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698