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

Unified Diff: src/core/SkSmallAllocator.h

Issue 1316123003: Style Change: SkNEW->new; SkDELETE->delete (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-26 (Wednesday) 15:59:00 EDT Created 5 years, 4 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
« no previous file with comments | « src/core/SkShader.cpp ('k') | src/core/SkStream.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkSmallAllocator.h
diff --git a/src/core/SkSmallAllocator.h b/src/core/SkSmallAllocator.h
index 018705f974f1f472dd6fe38e631e4d6f3ab358f1..a2c132a50fdd613bcbb0949dc72ae0710d066802 100644
--- a/src/core/SkSmallAllocator.h
+++ b/src/core/SkSmallAllocator.h
@@ -63,7 +63,7 @@ public:
if (NULL == buf) {
return NULL;
}
- SkNEW_PLACEMENT(buf, T);
+ new (buf) T;
return static_cast<T*>(buf);
}
@@ -72,7 +72,7 @@ public:
if (NULL == buf) {
return NULL;
}
- SkNEW_PLACEMENT_ARGS(buf, T, (a1));
+ new (buf) T(a1);
return static_cast<T*>(buf);
}
@@ -82,7 +82,7 @@ public:
if (NULL == buf) {
return NULL;
}
- SkNEW_PLACEMENT_ARGS(buf, T, (a1, a2));
+ new (buf) T(a1, a2);
return static_cast<T*>(buf);
}
@@ -92,7 +92,7 @@ public:
if (NULL == buf) {
return NULL;
}
- SkNEW_PLACEMENT_ARGS(buf, T, (a1, a2, a3));
+ new (buf) T(a1, a2, a3);
return static_cast<T*>(buf);
}
@@ -102,7 +102,7 @@ public:
if (NULL == buf) {
return NULL;
}
- SkNEW_PLACEMENT_ARGS(buf, T, (a1, a2, a3, a4));
+ new (buf) T(a1, a2, a3, a4);
return static_cast<T*>(buf);
}
« no previous file with comments | « src/core/SkShader.cpp ('k') | src/core/SkStream.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698