From 2e67e2a63e6b34a5d45ba1ee35de4fce5116eeee Mon Sep 17 00:00:00 2001 From: "benjamin%smedbergs.us" Date: Tue, 8 Aug 2006 17:08:19 +0000 Subject: [PATCH] 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 --- xpcom/glue/nsArrayEnumerator.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xpcom/glue/nsArrayEnumerator.h b/xpcom/glue/nsArrayEnumerator.h index da44b84c5b87..e22302b50564 100644 --- a/xpcom/glue/nsArrayEnumerator.h +++ b/xpcom/glue/nsArrayEnumerator.h @@ -59,7 +59,9 @@ public: nsSimpleArrayEnumerator(nsIArray* aValueArray) : mValueArray(aValueArray), mIndex(0) { } - virtual ~nsSimpleArrayEnumerator(void) {} + +private: + ~nsSimpleArrayEnumerator() {} protected: nsCOMPtr mValueArray;