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

Unified Diff: third_party/WebKit/Source/platform/transforms/TransformationMatrix.h

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/platform/transforms/TransformationMatrix.h
diff --git a/third_party/WebKit/Source/platform/transforms/TransformationMatrix.h b/third_party/WebKit/Source/platform/transforms/TransformationMatrix.h
index f2bc7d9785f98169614cbf0bc219b1dd653b091d..7aa2e728376008aa37d6a2720bb0e9d98b1e1418 100644
--- a/third_party/WebKit/Source/platform/transforms/TransformationMatrix.h
+++ b/third_party/WebKit/Source/platform/transforms/TransformationMatrix.h
@@ -63,11 +63,11 @@ class PLATFORM_EXPORT TransformationMatrix {
#endif
static std::unique_ptr<TransformationMatrix> create() {
- return wrapUnique(new TransformationMatrix());
+ return makeUnique<TransformationMatrix>();
}
static std::unique_ptr<TransformationMatrix> create(
const TransformationMatrix& t) {
- return wrapUnique(new TransformationMatrix(t));
+ return makeUnique<TransformationMatrix>(t);
}
static std::unique_ptr<TransformationMatrix> create(double a,
double b,
@@ -75,7 +75,7 @@ class PLATFORM_EXPORT TransformationMatrix {
double d,
double e,
double f) {
- return wrapUnique(new TransformationMatrix(a, b, c, d, e, f));
+ return makeUnique<TransformationMatrix>(a, b, c, d, e, f);
}
static std::unique_ptr<TransformationMatrix> create(double m11,
double m12,

Powered by Google App Engine
This is Rietveld 408576698