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 dom parts); r=bzbarsky

--HG--
extra : rebase_source : e31b077d8556626aa46ac33abbe2997e86ba68df
This commit is contained in:
Ehsan Akhgari 2012-06-18 21:21:14 -04:00
parent 3e86298a2f
commit 7e0eb3c34f
2 changed files with 4 additions and 2 deletions

View File

@ -17,12 +17,13 @@
#include "mozilla/Preferences.h"
#include "nsJSUtils.h"
#include "DictionaryHelpers.h"
#include "mozilla/Attributes.h"
using namespace mozilla::dom;
#include "nsDirectoryServiceDefs.h"
class DeviceStorageFile : public nsISupports {
class DeviceStorageFile MOZ_FINAL : public nsISupports {
public:
nsCOMPtr<nsIFile> mFile;

View File

@ -7,12 +7,13 @@
#define mozilla_dom_sms_SmsDatabaseService_h
#include "nsISmsDatabaseService.h"
#include "mozilla/Attributes.h"
namespace mozilla {
namespace dom {
namespace sms {
class SmsDatabaseService : public nsISmsDatabaseService
class SmsDatabaseService MOZ_FINAL : public nsISmsDatabaseService
{
public:
NS_DECL_ISUPPORTS