| 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 d269e16f47b7ae28a62f1a3129103450fba02b29..2067cb0c3a22512613ddad009b2c7e73a12e8aaa 100644
|
| --- a/third_party/WebKit/Source/core/dom/DOMTypedArray.h
|
| +++ b/third_party/WebKit/Source/core/dom/DOMTypedArray.h
|
| @@ -51,13 +51,13 @@ class CORE_TEMPLATE_CLASS_EXPORT DOMTypedArray final
|
| unsigned length) {
|
| RefPtr<WTFTypedArray> buffer_view =
|
| WTFTypedArray::Create(buffer->Buffer(), byte_offset, length);
|
| - return new ThisType(buffer_view.Release(), buffer);
|
| + return new ThisType(std::move(buffer_view), buffer);
|
| }
|
|
|
| static ThisType* CreateOrNull(unsigned length) {
|
| RefPtr<WTF::ArrayBuffer> buffer =
|
| WTF::ArrayBuffer::CreateOrNull(length, sizeof(ValueType));
|
| - return buffer ? Create(buffer.Release(), 0, length) : nullptr;
|
| + return buffer ? Create(std::move(buffer), 0, length) : nullptr;
|
| }
|
|
|
| const WTFTypedArray* View() const {
|
|
|