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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ScriptState.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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/animation/CSSBasicShapeInterpolationType.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/bindings/core/v8/ScriptState.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptState.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptState.cpp
index f4520c1138476ef94982a5c1ac285b2945a47593..ffa410854cae6c8514db28e7cac8c300ce269dbe 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptState.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptState.cpp
@@ -35,9 +35,8 @@ ScriptState::ScriptState(v8::Local<v8::Context> context,
PassRefPtr<DOMWrapperWorld> world)
: m_isolate(context->GetIsolate()),
m_context(m_isolate, context),
- m_world(world),
- m_perContextData(V8PerContextData::create(context))
-{
+ m_world(std::move(world)),
+ m_perContextData(V8PerContextData::create(context)) {
DCHECK(m_world);
m_context.setWeak(this, &contextCollectedCallback);
context->SetAlignedPointerInEmbedderData(v8ContextPerContextDataIndex, this);
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/animation/CSSBasicShapeInterpolationType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698