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

Unified Diff: third_party/WebKit/Source/wtf/typed_arrays/TypedArrayBase.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/TypedArrayBase.h
diff --git a/third_party/WebKit/Source/wtf/typed_arrays/TypedArrayBase.h b/third_party/WebKit/Source/wtf/typed_arrays/TypedArrayBase.h
index 41702047266751c50a3817542dbdd5456c2e3404..48cc6936b6bd1cba690ea9659fe8f17d9fc73beb 100644
--- a/third_party/WebKit/Source/wtf/typed_arrays/TypedArrayBase.h
+++ b/third_party/WebKit/Source/wtf/typed_arrays/TypedArrayBase.h
@@ -72,7 +72,7 @@ public:
protected:
TypedArrayBase(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
- : ArrayBufferView(buffer, byteOffset)
+ : ArrayBufferView(std::move(buffer), byteOffset)
, m_length(length)
{
}

Powered by Google App Engine
This is Rietveld 408576698