Bug 229875 - eliminate unnecssary public/virtual destructors. This patch changes all refcounted classes under xpcom/, which aren't inherited from or used on the stack, to have private, nonvirtual destructors. r=dougt, sr=dbaron.

Original committer: bryner%brianryner.com
Original revision: 1.7
Original date: 2004/01/15 06:14:12
This commit is contained in:
benjamin%smedbergs.us 2006-08-08 17:08:49 +00:00
Родитель f4d5e2867e
Коммит 105a8585cf
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -110,7 +110,6 @@ public:
// nsSimpleArrayEnumerator methods
nsCOMArrayEnumerator() : mIndex(0) {
}
virtual ~nsCOMArrayEnumerator(void);
// specialized operator to make sure we make room for mValues
void* operator new (size_t size, const nsCOMArray_base& aArray) CPP_THROW_NEW;
@ -118,6 +117,9 @@ public:
::operator delete(ptr);
}
private:
~nsCOMArrayEnumerator(void);
protected:
PRUint32 mIndex; // current position
PRUint32 mArraySize; // size of the array