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 "mozIAsyncHistory.h"
#include "nsString.h" #include "nsString.h"
#include "nsAutoPtr.h" #include "nsAutoPtr.h"
#include "mozilla/Attributes.h"
class nsIURI; class nsIURI;
class mozIVisitInfo; class mozIVisitInfo;
@ -16,7 +17,7 @@ namespace mozilla {
namespace places { namespace places {
class PlaceInfo : public mozIPlaceInfo class PlaceInfo MOZ_FINAL : public mozIPlaceInfo
{ {
public: public:
NS_DECL_ISUPPORTS NS_DECL_ISUPPORTS

View File

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