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 (caps parts); r=bholley

This commit is contained in:
Ehsan Akhgari 2012-06-12 23:58:27 -04:00
Родитель f637ed8db4
Коммит 549521b5db
1 изменённых файлов: 3 добавлений и 2 удалений

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

@ -15,14 +15,15 @@
#include "nsISizeOf.h"
#include "nsAutoPtr.h"
#include "nsString.h"
#include "mozilla/Attributes.h"
// {51fcd543-3b52-41f7-b91b-6b54102236e6}
#define NS_NULLPRINCIPALURI_IMPLEMENTATION_CID \
{0x51fcd543, 0x3b52, 0x41f7, \
{0xb9, 0x1b, 0x6b, 0x54, 0x10, 0x22, 0x36, 0xe6} }
class nsNullPrincipalURI : public nsIURI
, public nsISizeOf
class nsNullPrincipalURI MOZ_FINAL : public nsIURI
, public nsISizeOf
{
public:
NS_DECL_ISUPPORTS