зеркало из https://github.com/mozilla/gecko-dev.git
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 xpconnect parts); r=bholley
This commit is contained in:
Родитель
67e5da3d05
Коммит
905f89caaa
|
@ -15,8 +15,9 @@
|
|||
#include "nsStringGlue.h"
|
||||
#include "xpctest_attributes.h"
|
||||
#include "xpctest_params.h"
|
||||
#include "mozilla/Attributes.h"
|
||||
|
||||
class xpcTestObjectReadOnly : public nsIXPCTestObjectReadOnly {
|
||||
class xpcTestObjectReadOnly MOZ_FINAL : public nsIXPCTestObjectReadOnly {
|
||||
public:
|
||||
NS_DECL_ISUPPORTS
|
||||
NS_DECL_NSIXPCTESTOBJECTREADONLY
|
||||
|
@ -30,7 +31,7 @@ class xpcTestObjectReadOnly : public nsIXPCTestObjectReadOnly {
|
|||
char charProperty;
|
||||
};
|
||||
|
||||
class xpcTestObjectReadWrite : public nsIXPCTestObjectReadWrite {
|
||||
class xpcTestObjectReadWrite MOZ_FINAL : public nsIXPCTestObjectReadWrite {
|
||||
public:
|
||||
NS_DECL_ISUPPORTS
|
||||
NS_DECL_NSIXPCTESTOBJECTREADWRITE
|
||||
|
@ -47,7 +48,7 @@ class xpcTestObjectReadWrite : public nsIXPCTestObjectReadWrite {
|
|||
char *stringProperty;
|
||||
};
|
||||
|
||||
class nsXPCTestParams : public nsIXPCTestParams
|
||||
class nsXPCTestParams MOZ_FINAL : public nsIXPCTestParams
|
||||
{
|
||||
public:
|
||||
NS_DECL_ISUPPORTS
|
||||
|
|
Загрузка…
Ссылка в новой задаче