Bug 1287361 - Remove XPT_NEW. r=khuey.
authorNicholas Nethercote <nnethercote@mozilla.com>
Mon, 18 Jul 2016 14:17:20 +1000
changeset 330739 fbe15803100288c74cc3a0e8c54585c88fe1b454
parent 330738 c6d15a3e76373c76f9550a6afbe5ed8390033e0d
child 330740 2ca8ada54b9b1d2c5805077e3cf28142bcc5b612
push id9858
push userjlund@mozilla.com
push dateMon, 01 Aug 2016 14:37:10 +0000
treeherdermozilla-aurora@203106ef6cb6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskhuey
bugs1287361
milestone50.0a1
Bug 1287361 - Remove XPT_NEW. r=khuey.
xpcom/typelib/xpt/xpt_arena.h
--- a/xpcom/typelib/xpt/xpt_arena.h
+++ b/xpcom/typelib/xpt/xpt_arena.h
@@ -45,18 +45,17 @@ XPT_ArenaCalloc(XPTArena *arena, size_t 
 
 XPT_PUBLIC_API(size_t)
 XPT_SizeOfArenaIncludingThis(XPTArena *arena, MozMallocSizeOf mallocSizeOf);
 
 /* --------------------------------------------------------- */
 
 #define XPT_CALLOC8(_arena, _bytes) XPT_ArenaCalloc((_arena), (_bytes), 8)
 #define XPT_CALLOC1(_arena, _bytes) XPT_ArenaCalloc((_arena), (_bytes), 1)
-#define XPT_NEW(_arena, _struct) ((_struct *) XPT_CALLOC8((_arena), sizeof(_struct)))
-#define XPT_NEWZAP(_arena, _struct) XPT_NEW((_arena), _struct)
+#define XPT_NEWZAP(_arena, _struct) ((_struct *) XPT_CALLOC8((_arena), sizeof(_struct)))
 
 /* --------------------------------------------------------- */
 
 #ifdef DEBUG
 XPT_PUBLIC_API(void)
 XPT_AssertFailed(const char *s, const char *file, uint32_t lineno)
   MOZ_PRETEND_NORETURN_FOR_STATIC_ANALYSIS;
 #define XPT_ASSERT(_expr) \