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 (extensions/auth/ parts); r=bsmedberg

--HG--
extra : rebase_source : bf2a9c8de523d78eac780da7d7d755be47b97114
This commit is contained in:
Ehsan Akhgari 2012-06-12 23:13:31 -04:00
Родитель 0c37360e52
Коммит ba10340a7c
4 изменённых файлов: 8 добавлений и 4 удалений

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

@ -9,6 +9,7 @@
#include "nsAuth.h"
#include "nsIAuthModule.h"
#include "nsString.h"
#include "mozilla/Attributes.h"
#define GSS_USE_FUNCTION_POINTERS 1
@ -34,7 +35,7 @@
* last call are required as input to the next.
*/
class nsAuthGSSAPI : public nsIAuthModule
class nsAuthGSSAPI MOZ_FINAL : public nsIAuthModule
{
public:
NS_DECL_ISUPPORTS

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

@ -9,13 +9,14 @@
#include "nsIAuthModule.h"
#include "nsString.h"
#include "nsCOMPtr.h"
#include "mozilla/Attributes.h"
/* This class is implemented using the nsAuthGSSAPI class, and the same
* thread safety constraints which are documented in nsAuthGSSAPI.h
* apply to this class
*/
class nsAuthSASL : public nsIAuthModule
class nsAuthSASL MOZ_FINAL : public nsIAuthModule
{
public:
NS_DECL_ISUPPORTS

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

@ -11,6 +11,7 @@
#include "nsCOMPtr.h"
#include "prio.h"
#include "prproces.h"
#include "mozilla/Attributes.h"
/**
* This is an implementation of NTLM authentication that does single-signon
@ -22,7 +23,7 @@
* NOTE: at time of writing, this requires patches to be added to the stock
* Samba winbindd and ntlm_auth!
*/
class nsAuthSambaNTLM : public nsIAuthModule
class nsAuthSambaNTLM MOZ_FINAL : public nsIAuthModule
{
public:
NS_DECL_ISUPPORTS

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

@ -9,11 +9,12 @@
#include "nsIHttpAuthenticator.h"
#include "nsIURI.h"
#include "nsSubstring.h"
#include "mozilla/Attributes.h"
// The nsHttpNegotiateAuth class provides responses for the GSS-API Negotiate method
// as specified by Microsoft in draft-brezak-spnego-http-04.txt
class nsHttpNegotiateAuth : public nsIHttpAuthenticator
class nsHttpNegotiateAuth MOZ_FINAL : public nsIHttpAuthenticator
{
public:
NS_DECL_ISUPPORTS