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

Unified Diff: third_party/WebKit/Source/wtf/typed_arrays/Uint16Array.h

Issue 2308353002: Replaced PassRefPtr copies with moves in Source/web and Source/wtf. (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/wtf/typed_arrays/Uint16Array.h
diff --git a/third_party/WebKit/Source/wtf/typed_arrays/Uint16Array.h b/third_party/WebKit/Source/wtf/typed_arrays/Uint16Array.h
index b0ba16f433184ed1c519626eaf4c467df3c20ffd..eaaebefa97e4215c6e114ede58f7c48fa8bc36e6 100644
--- a/third_party/WebKit/Source/wtf/typed_arrays/Uint16Array.h
+++ b/third_party/WebKit/Source/wtf/typed_arrays/Uint16Array.h
@@ -65,11 +65,11 @@ PassRefPtr<Uint16Array> Uint16Array::create(const unsigned short* array, unsigne
PassRefPtr<Uint16Array> Uint16Array::create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
{
- return TypedArrayBase<unsigned short>::create<Uint16Array>(buffer, byteOffset, length);
+ return TypedArrayBase<unsigned short>::create<Uint16Array>(std::move(buffer), byteOffset, length);
}
Uint16Array::Uint16Array(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
- : IntegralTypedArrayBase<unsigned short>(buffer, byteOffset, length)
+ : IntegralTypedArrayBase<unsigned short>(std::move(buffer), byteOffset, length)
{
}

Powered by Google App Engine
This is Rietveld 408576698