mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
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 (jsd parts); r=Waldo
This commit is contained in:
parent
add06953b9
commit
5436c2e9b5
@ -23,6 +23,7 @@
|
||||
#include "nsReadableUtils.h"
|
||||
#include "nsCRT.h"
|
||||
#include "nsCycleCollectionParticipant.h"
|
||||
#include "mozilla/Attributes.h"
|
||||
|
||||
/* XXX DOM dependency */
|
||||
#include "nsIScriptContext.h"
|
||||
@ -3381,7 +3382,7 @@ NS_GENERIC_FACTORY_SINGLETON_CONSTRUCTOR(jsdService, jsdService::GetService)
|
||||
* and/or removed from the app-start category by the jsdService::initAtStartup
|
||||
* property.
|
||||
*/
|
||||
class jsdASObserver : public nsIObserver
|
||||
class jsdASObserver MOZ_FINAL : public nsIObserver
|
||||
{
|
||||
public:
|
||||
NS_DECL_ISUPPORTS
|
||||
|
@ -13,6 +13,7 @@
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nspr.h"
|
||||
#include "nsCycleCollectionParticipant.h"
|
||||
#include "mozilla/Attributes.h"
|
||||
|
||||
// #if defined(DEBUG_rginda_l)
|
||||
// # define DEBUG_verbose
|
||||
@ -33,7 +34,7 @@ struct PCMapEntry {
|
||||
* reflected jsd data structures
|
||||
*******************************************************************************/
|
||||
|
||||
class jsdObject : public jsdIObject
|
||||
class jsdObject MOZ_FINAL : public jsdIObject
|
||||
{
|
||||
public:
|
||||
NS_DECL_ISUPPORTS
|
||||
|
Loading…
Reference in New Issue
Block a user