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 (more widget parts); r=roc

This commit is contained in:
Ehsan Akhgari
2012-06-19 23:28:45 -04:00
parent 2f4f53562a
commit 32db4ccf3e

View File

@@ -23,6 +23,7 @@
#include "nsIInterfaceRequestorUtils.h"
#include "nsNetUtil.h"
#include "nsThreadUtils.h"
#include "mozilla/Attributes.h"
#ifdef XP_WIN
#include <windows.h>
@@ -158,7 +159,7 @@ public:
}
};
class EventListener : public nsIDOMEventListener
class EventListener MOZ_FINAL : public nsIDOMEventListener
{
nsCOMPtr<nsIAppShell> mAppShell;