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:
Ehsan Akhgari 2012-06-12 23:45:08 -04:00
Родитель add06953b9
Коммит 5436c2e9b5
2 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -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