mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
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:
parent
59051c7ccf
commit
1cec106e6c
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user