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

Unified Diff: third_party/WebKit/Source/modules/webaudio/AudioBuffer.cpp

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/modules/webaudio/AudioBuffer.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioBuffer.cpp b/third_party/WebKit/Source/modules/webaudio/AudioBuffer.cpp
index 190e104f82b0fa03b654abd3ebcbbf5e342650b3..5fdf1564e7e8d97a7e632f5d9e159f4756806a15 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioBuffer.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/AudioBuffer.cpp
@@ -144,7 +144,7 @@ DOMFloat32Array* AudioBuffer::CreateFloat32ArrayOrNull(size_t length) {
WTF::Float32Array::CreateOrNull(length);
if (!buffer_view)
return nullptr;
- return DOMFloat32Array::Create(buffer_view.Release());
+ return DOMFloat32Array::Create(std::move(buffer_view));
}
AudioBuffer::AudioBuffer(unsigned number_of_channels,

Powered by Google App Engine
This is Rietveld 408576698