зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
59051c7ccf
Коммит
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
|
||||
|
|
Загрузка…
Ссылка в новой задаче