From fc6b30fa6d14aa1e14bb7b6ba24f6a5e90d6eb76 Mon Sep 17 00:00:00 2001 From: Ehsan Akhgari Date: Thu, 19 Jul 2012 00:42:48 -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 (tools/profiler parts); blanket-r=bzbarsky --- tools/profiler/nsProfiler.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/profiler/nsProfiler.h b/tools/profiler/nsProfiler.h index c16b1d044ae9..e59cb3f11f2d 100644 --- a/tools/profiler/nsProfiler.h +++ b/tools/profiler/nsProfiler.h @@ -7,8 +7,9 @@ #define _NSPROFILER_H_ #include "nsIProfiler.h" +#include "mozilla/Attributes.h" -class nsProfiler : public nsIProfiler +class nsProfiler MOZ_FINAL : public nsIProfiler { public: nsProfiler();