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 xpcom and gonk parts); r=jrmuizel

This commit is contained in:
Ehsan Akhgari
2012-06-19 23:41:56 -04:00
parent 7963619b25
commit 2f3ae6ae0c
11 changed files with 28 additions and 14 deletions

View File

@@ -20,6 +20,7 @@
#include "nsComponentManagerUtils.h"
#include "nsServiceManagerUtils.h"
#include "nsAutoPtr.h"
#include "mozilla/Attributes.h"
#define NS_ITESTSERVICE_IID \
{0x127b5253, 0x37b1, 0x43c7, \
@@ -32,7 +33,8 @@ class NS_NO_VTABLE nsITestService : public nsISupports {
NS_DEFINE_STATIC_IID_ACCESSOR(nsITestService, NS_ITESTSERVICE_IID)
class nsTestService : public nsITestService, public nsSupportsWeakReference
class nsTestService MOZ_FINAL : public nsITestService,
public nsSupportsWeakReference
{
public:
NS_DECL_ISUPPORTS