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

Unified Diff: third_party/WebKit/Source/wtf/VectorTest.cpp

Issue 1984593002: Remove OwnPtr::release() calls in web/ & wtf/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with trunk. 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
« no previous file with comments | « third_party/WebKit/Source/wtf/DequeTest.cpp ('k') | third_party/WebKit/Source/wtf/text/TextPosition.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/VectorTest.cpp
diff --git a/third_party/WebKit/Source/wtf/VectorTest.cpp b/third_party/WebKit/Source/wtf/VectorTest.cpp
index 6f047688c4b806d6c7f8d62abd34dc51e925e28a..7203ea45b369e7ea6ea5483362dbbf6d2ec4d81c 100644
--- a/third_party/WebKit/Source/wtf/VectorTest.cpp
+++ b/third_party/WebKit/Source/wtf/VectorTest.cpp
@@ -200,7 +200,7 @@ TEST(VectorTest, OwnPtr)
EXPECT_EQ(1u, vector.size());
EXPECT_EQ(1, destructNumber);
- OwnPtr<DestructCounter> ownCounter1 = vector[0].release();
+ OwnPtr<DestructCounter> ownCounter1 = std::move(vector[0]);
vector.remove(0);
ASSERT_EQ(counter1, ownCounter1->get());
ASSERT_EQ(0u, vector.size());
« no previous file with comments | « third_party/WebKit/Source/wtf/DequeTest.cpp ('k') | third_party/WebKit/Source/wtf/text/TextPosition.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698