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

Unified Diff: third_party/WebKit/Source/core/layout/svg/SVGResources.cpp

Issue 1979183002: Remove OwnPtr::release() calls in core/ (part 3). (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
Index: third_party/WebKit/Source/core/layout/svg/SVGResources.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/SVGResources.cpp b/third_party/WebKit/Source/core/layout/svg/SVGResources.cpp
index 309b51310cdc3d36f5cd90c13d7ddcf626597f7e..fe15b73088be99170e7c2d132b9826f235e06247 100644
--- a/third_party/WebKit/Source/core/layout/svg/SVGResources.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/SVGResources.cpp
@@ -279,7 +279,7 @@ PassOwnPtr<SVGResources> SVGResources::buildResources(const LayoutObject* object
registerPendingResource(extensions, id, element);
}
- return (!resources || !resources->hasResourceData()) ? nullptr : resources.release();
+ return (!resources || !resources->hasResourceData()) ? nullptr : std::move(resources);
}
void SVGResources::layoutIfNeeded()

Powered by Google App Engine
This is Rietveld 408576698