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

Unified Diff: include/core/SkPostConfig.h

Issue 15739013: Use macros for new and delete in SkTemplates.h (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 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
« no previous file with comments | « no previous file | include/core/SkTemplates.h » ('j') | include/core/SkTemplates.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkPostConfig.h
diff --git a/include/core/SkPostConfig.h b/include/core/SkPostConfig.h
index 64768c6faf82ca763080ce0a22586360b1eebae6..a273506f7a609557e53bca6282d262caec1fbd7f 100644
--- a/include/core/SkPostConfig.h
+++ b/include/core/SkPostConfig.h
@@ -96,8 +96,8 @@
#define SkNEW_ARGS(type_name, args) (new type_name args)
#define SkNEW_ARRAY(type_name, count) (new type_name[(count)])
#define SkNEW_PLACEMENT(buf, type_name) (new (buf) type_name)
- #define SkNEW_PLACEMENT_ARGS(buf, type_name, args) \
- (new (buf) type_name args)
+ #define SkNEW_PLACEMENT_ARGS(buf, type_name, args) (new (buf) type_name args)
+ #define SkNEW_PLACEMENT_ARRAY(buf, type_name, count) (new (buf) type_name[(count)])
#define SkDELETE(obj) (delete (obj))
#define SkDELETE_ARRAY(array) (delete[] (array))
#endif
« no previous file with comments | « no previous file | include/core/SkTemplates.h » ('j') | include/core/SkTemplates.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698