From b3a19095722c49d91fbbc780389800dbd9409620 Mon Sep 17 00:00:00 2001 From: Ehsan Akhgari Date: Wed, 18 Jul 2012 11:54:26 -0400 Subject: [PATCH] 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 xpcom parts); blanket-r=bzbarsky --- xpcom/tests/TestSettingsAPI.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xpcom/tests/TestSettingsAPI.cpp b/xpcom/tests/TestSettingsAPI.cpp index d43f8c8ab4e9..dc1593476c08 100644 --- a/xpcom/tests/TestSettingsAPI.cpp +++ b/xpcom/tests/TestSettingsAPI.cpp @@ -8,6 +8,7 @@ #include "nsDirectoryServiceDefs.h" #include "nsDirectoryServiceUtils.h" #include "nsThreadUtils.h" +#include "mozilla/Attributes.h" using namespace mozilla; @@ -25,7 +26,7 @@ void _doCheck(bool cond, const char* msg, int line) { typedef nsresult(*TestFuncPtr)(); -class SettingsServiceCallback : public nsISettingsServiceCallback +class SettingsServiceCallback MOZ_FINAL : public nsISettingsServiceCallback { public: NS_DECL_ISUPPORTS