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 (more toolkit parts); blanket-r=bzbarsky

This commit is contained in:
Ehsan Akhgari
2012-07-18 12:12:55 -04:00
parent abff6c13e4
commit 39ca308925
9 changed files with 21 additions and 12 deletions

View File

@@ -24,6 +24,7 @@
#include "nsTextFormatter.h"
#include "nsXPCOMCID.h"
#include "plstr.h"
#include "mozilla/Attributes.h"
#ifdef MOZ_WIDGET_COCOA
#include <CoreFoundation/CoreFoundation.h>
@@ -44,7 +45,7 @@
#define NS_COMMANDLINE_CID \
{ 0x23bcc750, 0xdc20, 0x460b, { 0xb2, 0xd4, 0x74, 0xd8, 0xf5, 0x8d, 0x36, 0x15 } }
class nsCommandLine : public nsICommandLineRunner
class nsCommandLine MOZ_FINAL : public nsICommandLineRunner
{
public:
NS_DECL_ISUPPORTS