Bug 758992 - Make the classes which use the XPCOM nsISupports implementation macros final, to avoid the warning about deleting using a pointer to a base class with virtual functions and no virtual dtor (XPCOM parts); r=bsmedberg

This commit is contained in:
Ehsan Akhgari
2012-06-05 19:51:58 -04:00
parent cfc048d9b8
commit 6c1914b71f
48 changed files with 122 additions and 73 deletions

View File

@@ -8,6 +8,7 @@
*/
#include "mozilla/Util.h"
#include "mozilla/Attributes.h"
#include <sys/types.h>
#include <sys/stat.h>
@@ -97,8 +98,8 @@ using namespace mozilla;
/* directory enumerator */
class
nsDirEnumeratorUnix : public nsISimpleEnumerator,
public nsIDirectoryEnumerator
nsDirEnumeratorUnix MOZ_FINAL : public nsISimpleEnumerator,
public nsIDirectoryEnumerator
{
public:
nsDirEnumeratorUnix();