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.
git-svn-id: svn://10.0.0.236/trunk@151359 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -888,9 +888,8 @@ class nsDirEnumerator : public nsISimpleEnumerator
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
virtual ~nsDirEnumerator()
|
||||
{
|
||||
}
|
||||
private:
|
||||
~nsDirEnumerator() {}
|
||||
|
||||
protected:
|
||||
nsCOMPtr<nsILocalFileMac> mNext;
|
||||
@@ -966,10 +965,6 @@ nsLocalFile& nsLocalFile::operator=(const nsLocalFile& rhs)
|
||||
return *this;
|
||||
}
|
||||
|
||||
nsLocalFile::~nsLocalFile()
|
||||
{
|
||||
}
|
||||
|
||||
#pragma mark -
|
||||
#pragma mark [nsISupports interface implementation]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user