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

Unified Diff: third_party/WebKit/Source/core/events/MessageEvent.cpp

Issue 2761693002: Wrapped PassRefPtrs in move where passed to RefPtr constructor. (Closed)
Patch Set: Added move wraps for multiple instances in 1 line. Created 3 years, 9 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/core/events/MessageEvent.cpp
diff --git a/third_party/WebKit/Source/core/events/MessageEvent.cpp b/third_party/WebKit/Source/core/events/MessageEvent.cpp
index d5cc6305d06a23ed528c51e0392b24a66ba493b2..da7b1d0c71b4737169b8ddde8f9ebdf80eed3468 100644
--- a/third_party/WebKit/Source/core/events/MessageEvent.cpp
+++ b/third_party/WebKit/Source/core/events/MessageEvent.cpp
@@ -82,7 +82,7 @@ MessageEvent::MessageEvent(PassRefPtr<SerializedScriptValue> data,
const String& suborigin)
: Event(EventTypeNames::message, false, false),
m_dataType(DataTypeSerializedScriptValue),
- m_dataAsSerializedScriptValue(data),
+ m_dataAsSerializedScriptValue(std::move(data)),
m_origin(origin),
m_lastEventId(lastEventId),
m_source(source),
@@ -101,7 +101,7 @@ MessageEvent::MessageEvent(PassRefPtr<SerializedScriptValue> data,
const String& suborigin)
: Event(EventTypeNames::message, false, false),
m_dataType(DataTypeSerializedScriptValue),
- m_dataAsSerializedScriptValue(data),
+ m_dataAsSerializedScriptValue(std::move(data)),
m_origin(origin),
m_lastEventId(lastEventId),
m_source(source),
« no previous file with comments | « third_party/WebKit/Source/core/dom/DOMArrayBufferView.h ('k') | third_party/WebKit/Source/core/events/PopStateEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698