зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
f4d5e2867e
Коммит
105a8585cf
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче