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 (remaining XPCOM parts); r=bsmedberg

This commit is contained in:
Ehsan Akhgari
2012-06-12 23:08:53 -04:00
parent a14ffe39d6
commit 55c8710c75
3 changed files with 9 additions and 6 deletions

View File

@@ -5,6 +5,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsThreadUtils.h"
#include "mozilla/Attributes.h"
#ifdef MOZILLA_INTERNAL_API
# include "nsThreadManager.h"
@@ -220,7 +221,7 @@ NS_ProcessNextEvent(nsIThread *thread, bool mayWait)
namespace {
class nsNameThreadRunnable : public nsIRunnable
class nsNameThreadRunnable MOZ_FINAL : public nsIRunnable
{
public:
nsNameThreadRunnable(const nsACString &name) : mName(name) { }