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

Unified Diff: third_party/WebKit/Source/core/dom/DOMArrayBuffer.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/DOMArrayBuffer.h
diff --git a/third_party/WebKit/Source/core/dom/DOMArrayBuffer.h b/third_party/WebKit/Source/core/dom/DOMArrayBuffer.h
index e436a079e835ad465a5262249f0a402d58e25f02..a2b2af54906abde973c6c5b2627e1991598ffa0b 100644
--- a/third_party/WebKit/Source/core/dom/DOMArrayBuffer.h
+++ b/third_party/WebKit/Source/core/dom/DOMArrayBuffer.h
@@ -16,7 +16,7 @@ class CORE_EXPORT DOMArrayBuffer final : public DOMArrayBufferBase {
public:
static DOMArrayBuffer* create(PassRefPtr<WTF::ArrayBuffer> buffer)
{
- return new DOMArrayBuffer(buffer);
+ return new DOMArrayBuffer(std::move(buffer));
}
static DOMArrayBuffer* create(unsigned numElements, unsigned elementByteSize)
{
@@ -51,7 +51,7 @@ public:
private:
explicit DOMArrayBuffer(PassRefPtr<WTF::ArrayBuffer> buffer)
- : DOMArrayBufferBase(buffer)
+ : DOMArrayBufferBase(std::move(buffer))
{
}
};
« no previous file with comments | « third_party/WebKit/Source/core/css/resolver/FontBuilder.cpp ('k') | third_party/WebKit/Source/core/dom/DOMDataView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698