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

Unified Diff: third_party/WebKit/Source/wtf/typed_arrays/TypedArrayBase.h

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
« no previous file with comments | « third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferView.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/typed_arrays/TypedArrayBase.h
diff --git a/third_party/WebKit/Source/wtf/typed_arrays/TypedArrayBase.h b/third_party/WebKit/Source/wtf/typed_arrays/TypedArrayBase.h
index 43cfd86a907541c338c75e37afbb884580761d58..c42d0444d200f54584c013bdeed93d68f6354e49 100644
--- a/third_party/WebKit/Source/wtf/typed_arrays/TypedArrayBase.h
+++ b/third_party/WebKit/Source/wtf/typed_arrays/TypedArrayBase.h
@@ -84,7 +84,7 @@ class TypedArrayBase : public ArrayBufferView {
static PassRefPtr<Subclass> create(PassRefPtr<ArrayBuffer> buffer,
unsigned byteOffset,
unsigned length) {
- RefPtr<ArrayBuffer> buf(buffer);
+ RefPtr<ArrayBuffer> buf(std::move(buffer));
RELEASE_ASSERT(verifySubRange<T>(buf, byteOffset, length));
return adoptRef(new Subclass(buf.release(), byteOffset, length));
}
« no previous file with comments | « third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferView.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698