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

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

Issue 2308353002: Replaced PassRefPtr copies with moves in Source/web and Source/wtf. (Closed)
Patch Set: rebased Created 4 years, 3 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/Int32Array.h
diff --git a/third_party/WebKit/Source/wtf/typed_arrays/Int32Array.h b/third_party/WebKit/Source/wtf/typed_arrays/Int32Array.h
index ad6cb2e71fdaaaf29635b510f6af219f44e59161..36301a6834b4b823718a75093a66596a7fee3d54 100644
--- a/third_party/WebKit/Source/wtf/typed_arrays/Int32Array.h
+++ b/third_party/WebKit/Source/wtf/typed_arrays/Int32Array.h
@@ -63,11 +63,11 @@ PassRefPtr<Int32Array> Int32Array::create(const int* array, unsigned length)
PassRefPtr<Int32Array> Int32Array::create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
{
- return TypedArrayBase<int>::create<Int32Array>(buffer, byteOffset, length);
+ return TypedArrayBase<int>::create<Int32Array>(std::move(buffer), byteOffset, length);
}
Int32Array::Int32Array(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
- : IntegralTypedArrayBase<int>(buffer, byteOffset, length)
+ : IntegralTypedArrayBase<int>(std::move(buffer), byteOffset, length)
{
}

Powered by Google App Engine
This is Rietveld 408576698