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

This commit is contained in:
Ehsan Akhgari 2012-07-18 11:54:26 -04:00
parent 15dfe18ba1
commit b3a1909572

View File

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