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

Unified Diff: third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferView.cpp

Issue 2761693002: Wrapped PassRefPtrs in move where passed to RefPtr constructor. (Closed)
Patch Set: Added move wraps for multiple instances in 1 line. Created 3 years, 9 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/ArrayBufferView.cpp
diff --git a/third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferView.cpp b/third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferView.cpp
index 25443dc5663b8f0dcfb85b04a3c3eaae4cd09169..a4f4dce3f2cdabbb41d85fb147480126eabfc4f2 100644
--- a/third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferView.cpp
+++ b/third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferView.cpp
@@ -33,7 +33,7 @@ ArrayBufferView::ArrayBufferView(PassRefPtr<ArrayBuffer> buffer,
unsigned byteOffset)
: m_byteOffset(byteOffset),
m_isNeuterable(true),
- m_buffer(buffer),
+ m_buffer(std::move(buffer)),
m_prevView(nullptr),
m_nextView(nullptr) {
m_baseAddress =
« no previous file with comments | « third_party/WebKit/Source/wtf/text/WTFString.h ('k') | third_party/WebKit/Source/wtf/typed_arrays/TypedArrayBase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698