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.5
Original date: 2004/01/15 06:14:12
This commit is contained in:
benjamin%smedbergs.us 2006-08-08 17:08:19 +00:00
Родитель ec2c3e9d6b
Коммит 2e67e2a63e
1 изменённых файлов: 3 добавлений и 1 удалений

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

@ -59,7 +59,9 @@ public:
nsSimpleArrayEnumerator(nsIArray* aValueArray) :
mValueArray(aValueArray), mIndex(0) {
}
virtual ~nsSimpleArrayEnumerator(void) {}
private:
~nsSimpleArrayEnumerator() {}
protected:
nsCOMPtr<nsIArray> mValueArray;