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 (toolkit/places); r=mak

This commit is contained in:
David Zbarsky 2012-07-12 14:07:50 -04:00
parent 59051c7ccf
commit 1cec106e6c
2 changed files with 4 additions and 2 deletions

View File

@ -8,6 +8,7 @@
#include "mozIAsyncHistory.h"
#include "nsString.h"
#include "nsAutoPtr.h"
#include "mozilla/Attributes.h"
class nsIURI;
class mozIVisitInfo;
@ -16,7 +17,7 @@ namespace mozilla {
namespace places {
class PlaceInfo : public mozIPlaceInfo
class PlaceInfo MOZ_FINAL : public mozIPlaceInfo
{
public:
NS_DECL_ISUPPORTS

View File

@ -7,13 +7,14 @@
#include "mozIAsyncHistory.h"
#include "nsAutoPtr.h"
#include "mozilla/Attributes.h"
class nsIURI;
namespace mozilla {
namespace places {
class VisitInfo : public mozIVisitInfo
class VisitInfo MOZ_FINAL : public mozIVisitInfo
{
public:
NS_DECL_ISUPPORTS