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

Unified Diff: third_party/WebKit/Source/core/page/scrolling/ScrollState.cpp

Issue 1980893002: Remove OwnPtr::release() calls in core/ (part 4). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/page/scrolling/ScrollState.cpp
diff --git a/third_party/WebKit/Source/core/page/scrolling/ScrollState.cpp b/third_party/WebKit/Source/core/page/scrolling/ScrollState.cpp
index 1d2f4e47c4dea236b1f26a40c5b724c146978c09..e8caadad48460e23328ed495ca5682b3e4b073f5 100644
--- a/third_party/WebKit/Source/core/page/scrolling/ScrollState.cpp
+++ b/third_party/WebKit/Source/core/page/scrolling/ScrollState.cpp
@@ -40,7 +40,7 @@ ScrollState* ScrollState::create(ScrollStateInit init)
scrollStateData->from_user_input = init.fromUserInput();
scrollStateData->is_direct_manipulation = init.isDirectManipulation();
scrollStateData->delta_granularity = init.deltaGranularity();
- ScrollState* scrollState = new ScrollState(scrollStateData.release());
+ ScrollState* scrollState = new ScrollState(std::move(scrollStateData));
return scrollState;
}

Powered by Google App Engine
This is Rietveld 408576698