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

Unified Diff: third_party/WebKit/Source/wtf/typed_arrays/Float32Array.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/Float32Array.h
diff --git a/third_party/WebKit/Source/wtf/typed_arrays/Float32Array.h b/third_party/WebKit/Source/wtf/typed_arrays/Float32Array.h
index 93ad65555b88fe2012d19969817dfaa03a9a23b7..6c0563d81a9ef51f9b48b2b5f0554145571b858c 100644
--- a/third_party/WebKit/Source/wtf/typed_arrays/Float32Array.h
+++ b/third_party/WebKit/Source/wtf/typed_arrays/Float32Array.h
@@ -72,7 +72,7 @@ PassRefPtr<Float32Array> Float32Array::create(const float* array, unsigned lengt
PassRefPtr<Float32Array> Float32Array::create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
{
- return TypedArrayBase<float>::create<Float32Array>(buffer, byteOffset, length);
+ return TypedArrayBase<float>::create<Float32Array>(std::move(buffer), byteOffset, length);
}
PassRefPtr<Float32Array> Float32Array::createOrNull(unsigned length)
@@ -81,7 +81,7 @@ PassRefPtr<Float32Array> Float32Array::createOrNull(unsigned length)
}
Float32Array::Float32Array(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
- : TypedArrayBase<float>(buffer, byteOffset, length)
+ : TypedArrayBase<float>(std::move(buffer), byteOffset, length)
{
}
« no previous file with comments | « third_party/WebKit/Source/web/ChromeClientImpl.cpp ('k') | third_party/WebKit/Source/wtf/typed_arrays/Float64Array.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698