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

Unified Diff: third_party/WebKit/Source/platform/wtf/FunctionalTest.cpp

Issue 2956583002: Removed usage of RefPtr::Release in unit tests (Closed)
Patch Set: Created 3 years, 6 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/platform/wtf/FunctionalTest.cpp
diff --git a/third_party/WebKit/Source/platform/wtf/FunctionalTest.cpp b/third_party/WebKit/Source/platform/wtf/FunctionalTest.cpp
index ae1f922d0c7b71707235affe6258dd8a2c3d003a..8ff8f7e78bac0bfab42d02e20f2a9fcd15c5cbbf 100644
--- a/third_party/WebKit/Source/platform/wtf/FunctionalTest.cpp
+++ b/third_party/WebKit/Source/platform/wtf/FunctionalTest.cpp
@@ -365,7 +365,7 @@ TEST(FunctionalTest, RefCountedStorage) {
RefPtr<Number> six = Number::Create(6);
std::unique_ptr<Function<int()>> multiply_six_by_two_function =
- Bind(MultiplyNumberByTwo, six.Release());
+ Bind(MultiplyNumberByTwo, std::move(six));
EXPECT_FALSE(six);
EXPECT_EQ(12, (*multiply_six_by_two_function)());
}

Powered by Google App Engine
This is Rietveld 408576698