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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user