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:
bryner%brianryner.com
2004-01-15 06:14:18 +00:00
parent a3976d7340
commit b5ccad4460
93 changed files with 306 additions and 273 deletions

View File

@@ -98,7 +98,6 @@ nsDirEnumeratorUnix : public nsISimpleEnumerator
{
public:
nsDirEnumeratorUnix();
virtual ~nsDirEnumeratorUnix();
// nsISupports interface
NS_DECL_ISUPPORTS
@@ -108,6 +107,9 @@ nsDirEnumeratorUnix : public nsISimpleEnumerator
NS_IMETHOD Init(nsLocalFile *parent, PRBool ignored);
private:
~nsDirEnumeratorUnix();
protected:
NS_IMETHOD GetNextEntry();
@@ -208,10 +210,6 @@ nsLocalFile::nsLocalFile(const nsLocalFile& other)
{
}
nsLocalFile::~nsLocalFile()
{
}
NS_IMPL_THREADSAFE_ISUPPORTS2(nsLocalFile,
nsIFile,
nsILocalFile)