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

Unified Diff: third_party/WebKit/Source/core/dom/DOMTypedArray.h

Issue 2909613002: Replaced usage of RefPtr::Release with std::move wraps. (Closed)
Patch Set: Created 3 years, 7 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/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 {

Powered by Google App Engine
This is Rietveld 408576698