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
authorEhsan Akhgari <ehsan@mozilla.com>
Thu, 19 Jul 2012 00:42:48 -0400
changeset 102867 5c0899d7ac497a066c8c1e4b267beafeba10e88f
parent 102866 4de3970256ef69ae87ab2e2968c64d0bb783b5c5
child 102868 6ce63834a750681491aca1cb8dff9db9f4601a10
push idunknown
push userunknown
push dateunknown
bugs758992
milestone17.0a1
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
--- a/tools/profiler/nsProfiler.h
+++ b/tools/profiler/nsProfiler.h
@@ -2,18 +2,19 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #ifndef _NSPROFILER_H_
 #define _NSPROFILER_H_
 
 #include "nsIProfiler.h"
+#include "mozilla/Attributes.h"
 
-class nsProfiler : public nsIProfiler
+class nsProfiler MOZ_FINAL : public nsIProfiler
 {
 public:
     nsProfiler();
 
     NS_DECL_ISUPPORTS
 
     NS_DECL_NSIPROFILER
 };