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 intl parts); blanket-r=bzbarsky

--HG--
extra : rebase_source : 92f6b1dd5d0e67e05a7338991e648a09149275ec
This commit is contained in:
Ehsan Akhgari 2012-07-26 15:17:40 -04:00
parent 0e3a8a4574
commit d2b4d0734c
2 changed files with 4 additions and 2 deletions

View File

@ -11,10 +11,11 @@
#include "nsICollation.h"
#include "nsCollation.h" // static library
#include "plstr.h"
#include "mozilla/Attributes.h"
class nsCollationUnix : public nsICollation {
class nsCollationUnix MOZ_FINAL : public nsICollation {
protected:
nsCollation *mCollation;

View File

@ -17,6 +17,7 @@
#include "nsHttpAuthCache.h"
#include "nsProxyInfo.h"
#include "nsIDNSListener.h"
#include "mozilla/Attributes.h"
class nsIHttpAuthenticator;
@ -151,7 +152,7 @@ private:
PRUint32 mResolvedHost : 1;
// define a separate threadsafe class for use with the DNS callback
class DNSCallback : public nsIDNSListener
class DNSCallback MOZ_FINAL : public nsIDNSListener
{
NS_DECL_ISUPPORTS
NS_DECL_NSIDNSLISTENER