From 6d65439af9c8b2ba4ebebbb662a7c150bc9d3e99 Mon Sep 17 00:00:00 2001 From: Ehsan Akhgari Date: Mon, 18 Jun 2012 21:24:02 -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 (view parts); r=roc --HG-- extra : rebase_source : 5492f4c6d1cab22211b760edf8c77b889c651d76 --- view/src/nsView.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/view/src/nsView.cpp b/view/src/nsView.cpp index ef6b20cc9a7..d25535c53a1 100644 --- a/view/src/nsView.cpp +++ b/view/src/nsView.cpp @@ -11,6 +11,7 @@ #include "nsIComponentManager.h" #include "nsGfxCIID.h" #include "nsIInterfaceRequestor.h" +#include "mozilla/Attributes.h" //mmptemp @@ -26,7 +27,7 @@ static nsEventStatus HandleEvent(nsGUIEvent *aEvent); /** * nsISupports-derived helper class that allows to store and get a view */ -class ViewWrapper : public nsIInterfaceRequestor +class ViewWrapper MOZ_FINAL : public nsIInterfaceRequestor { public: NS_DECLARE_STATIC_IID_ACCESSOR(VIEW_WRAPPER_IID)