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
This commit is contained in:
Ehsan Akhgari 2012-06-18 21:24:02 -04:00
parent 604a4f2747
commit 6d65439af9

View File

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