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

Unified Diff: third_party/WebKit/Source/wtf/typed_arrays/IntegralTypedArrayBase.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/IntegralTypedArrayBase.h
diff --git a/third_party/WebKit/Source/wtf/typed_arrays/IntegralTypedArrayBase.h b/third_party/WebKit/Source/wtf/typed_arrays/IntegralTypedArrayBase.h
index ac20dcbbebb51a004cdba929316ca6bd38bc8b4c..5e7cd3f1f6fc65ccf38e3cab451eeca039dc9eb4 100644
--- a/third_party/WebKit/Source/wtf/typed_arrays/IntegralTypedArrayBase.h
+++ b/third_party/WebKit/Source/wtf/typed_arrays/IntegralTypedArrayBase.h
@@ -51,7 +51,7 @@ public:
protected:
IntegralTypedArrayBase(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
- : TypedArrayBase<T>(buffer, byteOffset, length)
+ : TypedArrayBase<T>(std::move(buffer), byteOffset, length)
{
}
};
« no previous file with comments | « third_party/WebKit/Source/wtf/typed_arrays/Int8Array.h ('k') | third_party/WebKit/Source/wtf/typed_arrays/TypedArrayBase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698