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

Unified Diff: third_party/WebKit/Source/core/layout/shapes/Shape.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/shapes/Shape.cpp
diff --git a/third_party/WebKit/Source/core/layout/shapes/Shape.cpp b/third_party/WebKit/Source/core/layout/shapes/Shape.cpp
index a502cc78a92ffc939b2e6e54243aa659d7c08bfc..7484888577ba25d5bb7a94e8fdab6a5d4b1d1100 100644
--- a/third_party/WebKit/Source/core/layout/shapes/Shape.cpp
+++ b/third_party/WebKit/Source/core/layout/shapes/Shape.cpp
@@ -53,7 +53,7 @@ namespace blink {
static std::unique_ptr<Shape> createInsetShape(const FloatRoundedRect& bounds) {
ASSERT(bounds.rect().width() >= 0 && bounds.rect().height() >= 0);
- return wrapUnique(new BoxShape(bounds));
+ return makeUnique<BoxShape>(bounds);
}
static std::unique_ptr<Shape> createCircleShape(const FloatPoint& center,
@@ -213,7 +213,7 @@ std::unique_ptr<Shape> Shape::createShape(const BasicShape* basicShape,
std::unique_ptr<Shape> Shape::createEmptyRasterShape(WritingMode writingMode,
float margin) {
std::unique_ptr<RasterShapeIntervals> intervals =
- wrapUnique(new RasterShapeIntervals(0, 0));
+ makeUnique<RasterShapeIntervals>(0, 0);
std::unique_ptr<RasterShape> rasterShape =
wrapUnique(new RasterShape(std::move(intervals), IntSize()));
rasterShape->m_writingMode = writingMode;

Powered by Google App Engine
This is Rietveld 408576698