storage-class-annotations
author Benjamin Smedberg <benjamin@smedbergs.us>
Sat, 26 Jul 2008 22:49:39 -0400
changeset 167 a4da40849f5436e629c5732f4368c6c48189637f
parent 157 8daebed024b6410329793f900335824e1f0b77b6
permissions -rw-r--r--
State as of now

diff --git a/xpcom/components/nsCategoryManager.h b/xpcom/components/nsCategoryManager.h
--- a/xpcom/components/nsCategoryManager.h
+++ b/xpcom/components/nsCategoryManager.h
@@ -117,7 +117,7 @@ public:
 
 private:
   CategoryNode() { }
-  void* operator new(size_t aSize, PLArenaPool* aArena);
+  void* operator new(size_t aSize, PLArenaPool* aArena) NS_MALLOCATOR;
 
   nsTHashtable<CategoryLeaf> mTable;
   PRLock* mLock;
diff --git a/xpcom/glue/nsArrayEnumerator.cpp b/xpcom/glue/nsArrayEnumerator.cpp
--- a/xpcom/glue/nsArrayEnumerator.cpp
+++ b/xpcom/glue/nsArrayEnumerator.cpp
@@ -139,7 +139,7 @@ public:
     nsCOMArrayEnumerator(const nsCOMArray_base &array);
 
     // specialized operator to make sure we make room for mValues
-    void* operator new (size_t size, PRUint32 item_count) CPP_THROW_NEW;
+    void* operator new (size_t size, PRUint32 item_count) CPP_THROW_NEW NS_GCFINALIZEDALLOCATOR;
 
 private:
     ~nsCOMArrayEnumerator(void);