Index: third_party/WebKit/Source/wtf/typed_arrays/Uint8Array.h |
diff --git a/third_party/WebKit/Source/wtf/typed_arrays/Uint8Array.h b/third_party/WebKit/Source/wtf/typed_arrays/Uint8Array.h |
index 16df128bec03cdf59084da62fbed2dd14b01c122..9b2ce6935d4ad17db723ad1387bcc081a5543ce6 100644 |
--- a/third_party/WebKit/Source/wtf/typed_arrays/Uint8Array.h |
+++ b/third_party/WebKit/Source/wtf/typed_arrays/Uint8Array.h |
@@ -65,11 +65,11 @@ PassRefPtr<Uint8Array> Uint8Array::create(const unsigned char* array, unsigned l |
PassRefPtr<Uint8Array> Uint8Array::create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length) |
{ |
- return TypedArrayBase<unsigned char>::create<Uint8Array>(buffer, byteOffset, length); |
+ return TypedArrayBase<unsigned char>::create<Uint8Array>(std::move(buffer), byteOffset, length); |
} |
Uint8Array::Uint8Array(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length) |
-: IntegralTypedArrayBase<unsigned char>(buffer, byteOffset, length) |
+: IntegralTypedArrayBase<unsigned char>(std::move(buffer), byteOffset, length) |
{ |
} |