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

Unified Diff: third_party/WebKit/Source/platform/testing/TestPaintArtifact.cpp

Issue 1983793002: Remove OwnPtr::release() calls in platform/ (part 2). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add one more file. 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/platform/testing/TestPaintArtifact.cpp
diff --git a/third_party/WebKit/Source/platform/testing/TestPaintArtifact.cpp b/third_party/WebKit/Source/platform/testing/TestPaintArtifact.cpp
index fba9b178dd9a05ffc9cd2c98966407d6f2af18d4..477fdf74f8d2313c20f39407c8259e4b3e747bb5 100644
--- a/third_party/WebKit/Source/platform/testing/TestPaintArtifact.cpp
+++ b/third_party/WebKit/Source/platform/testing/TestPaintArtifact.cpp
@@ -77,7 +77,7 @@ TestPaintArtifact& TestPaintArtifact::rectDrawing(const FloatRect& bounds, Color
OwnPtr<DummyRectClient> client = adoptPtr(new DummyRectClient(bounds, color));
m_displayItemList.allocateAndConstruct<DrawingDisplayItem>(
*client, DisplayItem::DrawingFirst, client->makePicture());
- m_dummyClients.append(client.release());
+ m_dummyClients.append(std::move(client));
return *this;
}
@@ -87,7 +87,7 @@ TestPaintArtifact& TestPaintArtifact::foreignLayer(const FloatPoint& location, c
OwnPtr<DummyRectClient> client = adoptPtr(new DummyRectClient(floatBounds, Color::transparent));
m_displayItemList.allocateAndConstruct<ForeignLayerDisplayItem>(
*client, DisplayItem::ForeignLayerFirst, std::move(layer), location, size);
- m_dummyClients.append(client.release());
+ m_dummyClients.append(std::move(client));
return *this;
}
« no previous file with comments | « third_party/WebKit/Source/platform/scroll/ScrollAnimator.cpp ('k') | third_party/WebKit/Source/platform/text/LocaleICU.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698