mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 18:08:58 +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 "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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user