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

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

Powered by Google App Engine
This is Rietveld 408576698