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

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

Issue 2308353002: Replaced PassRefPtr copies with moves in Source/web and Source/wtf. (Closed)
Patch Set: Removed changes in HashMap.h which cause std::forward/std::move conflict 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/Int16Array.h
diff --git a/third_party/WebKit/Source/wtf/typed_arrays/Int16Array.h b/third_party/WebKit/Source/wtf/typed_arrays/Int16Array.h
index 925f1a0075d9b407270caa53a405d7d19cce9991..569c9f3f9b4fee783f6195b5c3d238b6223dad5a 100644
--- a/third_party/WebKit/Source/wtf/typed_arrays/Int16Array.h
+++ b/third_party/WebKit/Source/wtf/typed_arrays/Int16Array.h
@@ -64,11 +64,11 @@ PassRefPtr<Int16Array> Int16Array::create(const short* array, unsigned length)
PassRefPtr<Int16Array> Int16Array::create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
{
- return TypedArrayBase<short>::create<Int16Array>(buffer, byteOffset, length);
+ return TypedArrayBase<short>::create<Int16Array>(std::move(buffer), byteOffset, length);
}
Int16Array::Int16Array(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
- : IntegralTypedArrayBase<short>(buffer, byteOffset, length)
+ : IntegralTypedArrayBase<short>(std::move(buffer), byteOffset, length)
{
}
« no previous file with comments | « third_party/WebKit/Source/wtf/typed_arrays/Float64Array.h ('k') | third_party/WebKit/Source/wtf/typed_arrays/Int32Array.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698