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

Unified Diff: third_party/WebKit/Source/wtf/typed_arrays/Uint32Array.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/Uint32Array.h
diff --git a/third_party/WebKit/Source/wtf/typed_arrays/Uint32Array.h b/third_party/WebKit/Source/wtf/typed_arrays/Uint32Array.h
index b6f72edee9917be6ab27af09b392c89fc9608607..c5fccd1f18d962ce72e99a5235a72eb5ab0cbc25 100644
--- a/third_party/WebKit/Source/wtf/typed_arrays/Uint32Array.h
+++ b/third_party/WebKit/Source/wtf/typed_arrays/Uint32Array.h
@@ -65,11 +65,11 @@ PassRefPtr<Uint32Array> Uint32Array::create(const unsigned* array, unsigned leng
PassRefPtr<Uint32Array> Uint32Array::create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
{
- return TypedArrayBase<unsigned>::create<Uint32Array>(buffer, byteOffset, length);
+ return TypedArrayBase<unsigned>::create<Uint32Array>(std::move(buffer), byteOffset, length);
}
Uint32Array::Uint32Array(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
- : IntegralTypedArrayBase<unsigned>(buffer, byteOffset, length)
+ : IntegralTypedArrayBase<unsigned>(std::move(buffer), byteOffset, length)
{
}
« no previous file with comments | « third_party/WebKit/Source/wtf/typed_arrays/Uint16Array.h ('k') | third_party/WebKit/Source/wtf/typed_arrays/Uint8Array.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698