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 (xpfe/appshell parts); blanket-r=bzbarsky

This commit is contained in:
Ehsan Akhgari 2012-07-19 00:49:48 -04:00
parent 3e1a5e0246
commit e8d304cfca

View File

@ -13,13 +13,14 @@
#include "nsWebShellWindow.h"
#include "nsStringFwd.h"
#include "nsAutoPtr.h"
#include "mozilla/Attributes.h"
// {0099907D-123C-4853-A46A-43098B5FB68C}
#define NS_APPSHELLSERVICE_CID \
{ 0x99907d, 0x123c, 0x4853, { 0xa4, 0x6a, 0x43, 0x9, 0x8b, 0x5f, 0xb6, 0x8c } }
class nsAppShellService : public nsIAppShellService,
public nsIObserver
class nsAppShellService MOZ_FINAL : public nsIAppShellService,
public nsIObserver
{
public:
NS_DECL_ISUPPORTS