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

Unified Diff: third_party/WebKit/Source/core/dom/DOMSharedArrayBuffer.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/DOMSharedArrayBuffer.h
diff --git a/third_party/WebKit/Source/core/dom/DOMSharedArrayBuffer.h b/third_party/WebKit/Source/core/dom/DOMSharedArrayBuffer.h
index 6b057d7a9dd07d5d19c0c75a54a746aa0c369393..91a92d21b3a5c53ca3d70fbc83f9f66bd80ecf35 100644
--- a/third_party/WebKit/Source/core/dom/DOMSharedArrayBuffer.h
+++ b/third_party/WebKit/Source/core/dom/DOMSharedArrayBuffer.h
@@ -17,7 +17,7 @@ public:
static DOMSharedArrayBuffer* create(PassRefPtr<WTF::ArrayBuffer> buffer)
{
DCHECK(buffer->isShared());
- return new DOMSharedArrayBuffer(buffer);
+ return new DOMSharedArrayBuffer(std::move(buffer));
}
static DOMSharedArrayBuffer* create(unsigned numElements, unsigned elementByteSize)
{
@@ -37,7 +37,7 @@ public:
private:
explicit DOMSharedArrayBuffer(PassRefPtr<WTF::ArrayBuffer> buffer)
- : DOMArrayBufferBase(buffer)
+ : DOMArrayBufferBase(std::move(buffer))
{
}
};
« no previous file with comments | « third_party/WebKit/Source/core/dom/DOMDataView.h ('k') | third_party/WebKit/Source/core/dom/DOMTypedArray.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698