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

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

Issue 2494333002: Replace wrapUnique(new T(args)) by makeUnique<T>(args) in Blink (Closed)
Patch Set: Drop redundant WTF:: Created 4 years, 1 month 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/LayoutSVGShape.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp
index c3b871491be7b8da7f2f8790e0310ba08ecfd6ae..932e938c00b5740d9a0ab948c03843e6116b8d2b 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp
@@ -72,7 +72,7 @@ LayoutSVGShape::~LayoutSVGShape() {}
void LayoutSVGShape::createPath() {
if (!m_path)
- m_path = wrapUnique(new Path());
+ m_path = makeUnique<Path>();
*m_path = toSVGGeometryElement(element())->asPath();
if (m_rareData.get())
m_rareData->m_cachedNonScalingStrokePath.clear();
@@ -333,7 +333,7 @@ float LayoutSVGShape::strokeWidth() const {
LayoutSVGShapeRareData& LayoutSVGShape::ensureRareData() const {
if (!m_rareData)
- m_rareData = wrapUnique(new LayoutSVGShapeRareData());
+ m_rareData = makeUnique<LayoutSVGShapeRareData>();
return *m_rareData.get();
}

Powered by Google App Engine
This is Rietveld 408576698